Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/itertools.hpp"
Pseudo-Iterator to yield just a single value.
When incremented, the value is destroyed and the Iterator transitions to exhausted state.
VAL | anything, value or reference to store |
Definition at line 626 of file itertools.hpp.
Public Member Functions | |
SingleValIter (VAL &&something) | |
Public Member Functions inherited from IterTool< SingleValCore< VAL > > | |
IterTool (SingleValCore< VAL > &&setup) | |
bool | empty () const |
bool | isValid () const |
operator bool () const | |
reference | operator* () const |
IterTool & | operator++ () |
pointer | operator-> () const |
Private Types | |
using | _IteratorImpl = IterTool< _ValHolder > |
using | _ValHolder = SingleValCore< VAL > |
Additional Inherited Members | |
Public Types inherited from IterTool< SingleValCore< VAL > > | |
typedef SingleValCore< VAL > ::pointer | pointer |
typedef SingleValCore< VAL > ::reference | reference |
typedef SingleValCore< VAL > ::value_type | value_type |
Protected Member Functions inherited from IterTool< SingleValCore< VAL > > | |
void | _maybe_throw () const |
bool | hasData () const |
bool | iterate () |
Protected Attributes inherited from IterTool< SingleValCore< VAL > > | |
SingleValCore< VAL > | core_ |