|
CeresEngine 0.2.0
A game development framework
|
Take a class T with that defines the methods T::advance() and O T::value() for any type O and wraps it into a single-use iterable class.
More...
#include <CeresEngine/Foundation/Iterator.hpp>
Public Member Functions | |
| auto && | begin () const |
| auto | end () const |
| MakeIterable (T &&value) | |
| template<typename... Args> | |
| MakeIterable (Args &&... args) | |
Public Attributes | |
| Iterator< T, impl::increment::ByMemberCall< T, decltype(&T::advance), &T::advance >, impl::dereference::ByMemberCall< T, decltype(&T::value), &T::value >, impl::compare::ByValue > | start |
Take a class T with that defines the methods T::advance() and O T::value() for any type O and wraps it into a single-use iterable class.
The return value of T::advance() is used to indicate the state of the iterator.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
mutable |