libkazv
|
A RangeT is an ordered collection that can be iterated through. More...
#include <range-t.hpp>
Public Types | |
using | DataT = T |
The type of items in this range. More... | |
Public Member Functions | |
auto | begin () const |
The beginning iterator of this range. More... | |
auto | end () const |
The past-end iterator of this range. More... | |
const DataT & | at (std::size_t index) const |
Get the item at index with bound-checking. More... | |
const DataT & | operator[] (std::size_t index) const |
Get the item at index without bound-checking. More... | |
A RangeT is an ordered collection that can be iterated through.
Get the item at index with bound-checking.
If there is no such index, it will throw.
auto RangeT< T >::begin | ( | ) | const |
The beginning iterator of this range.
auto RangeT< T >::end | ( | ) | const |
The past-end iterator of this range.
Get the item at index without bound-checking.
If there is no such index, it might return a default-constructed instance, or it might be undefined behaviour.