Template Struct enumerate_range¶
Defined in File enumerate.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
template<class Container>
struct util::enumerate_range¶ A helper class for Python-like enumerating through the elements of a container.
- tparam Container
the type of container used in this range
Public Functions
-
explicit enumerate_range(container_reference container)¶
-
class iterator¶
Public Types
-
using pointer = typename std::conditional_t<Const, const value_type*, value_type*>¶
-
using reference = typename std::conditional_t<Const, const value_type&, value_type&>¶
Public Functions
-
iterator(container_iterator iterator)¶
-
struct pair¶
-
using pointer = typename std::conditional_t<Const, const value_type*, value_type*>¶