![]() |
Gamedev Framework (gf)
0.19.0
A C++17 framework for 2D games
|
A half-open range of values. More...
#include <gf/Range.h>
Classes | |
| struct | Iterator |
| A range iterator. More... | |
Public Member Functions | |
| constexpr bool | contains (T value) const noexcept |
| Check if a value is in a range. More... | |
| constexpr Iterator | begin () const noexcept |
| Get a begin iterator. More... | |
| constexpr Iterator | end () const noexcept |
| Get a end iterator. More... | |
| constexpr T | length () const noexcept |
| Get the length of the range. More... | |
| constexpr bool | isEmpty () const noexcept |
| Check if the range is empty. More... | |
| constexpr bool | isValid () const noexcept |
| Check is the range is valid. More... | |
Public Attributes | |
| T | lo |
| The lower endpoint (included) More... | |
| T | hi |
| The higher endpoint (excluded) More... | |
A half-open range of values.
gf::Range represents a half-open range of values.
Check if a value is in a range.
| value | The value to test |
Get the length of the range.
1.8.13