![]() |
Lumiera 0.pre.04
»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 () | |
| SingleValIter (VAL &&something) | |
Public Member Functions inherited from IterTool< SingleValCore< VAL > > | |
| IterTool (SingleValCore< VAL > &&setup) | |
| operator bool () const | |
| reference | operator* () const |
| pointer | operator-> () const |
| IterTool & | operator++ () |
| bool | isValid () const |
| bool | empty () const |
Private Types | |
| using | _ValHolder = SingleValCore< VAL > |
| using | _IteratorImpl = IterTool< _ValHolder > |
Additional Inherited Members | |
Public Types inherited from IterTool< SingleValCore< VAL > > | |
| using | pointer = CORE::pointer |
| using | reference = CORE::reference |
| using | value_type = CORE::value_type |
Protected Member Functions inherited from IterTool< SingleValCore< VAL > > | |
| bool | hasData () const |
| bool | iterate () |
| void | _maybe_throw () const |
Protected Attributes inherited from IterTool< SingleValCore< VAL > > | |
| SingleValCore< VAL > | core_ |
|
inline |
Definition at line 633 of file itertools.hpp.
|
inline |
Definition at line 637 of file itertools.hpp.
|
private |
Definition at line 629 of file itertools.hpp.
|
private |
Definition at line 630 of file itertools.hpp.
Inheritance diagram for SingleValIter< VAL >:
Collaboration diagram for SingleValIter< VAL >: