![]() |
Gamedev Framework (gf) 1.2.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 if 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.
|
inlineconstexprnoexcept |
Check if a value is in a range.
| value | The value to test |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Get the length of the range.
| T gf::Range< T >::hi |
The higher endpoint (excluded)
| T gf::Range< T >::lo |
The lower endpoint (included)