kblib
0.2.3
General utilities library for modern C++
|
An OutputIterator that simply calls a provided functor for each value assigned to it. More...
#include <kblib/iterators.h>
Public Types | |
using | value_type = void |
using | difference_type = void |
using | pointer = void |
using | reference = void |
using | iterator_category = std::output_iterator_tag |
Public Member Functions | |
consume_iterator (F f) | |
Constructs a consume_iterator with the given function object. More... | |
template<typename V > | |
auto | operator= (V &&value) noexcept(noexcept(kblib::invoke(fun, std::forward< V >(value)))) -> consume_iterator & |
Pass value to F. More... | |
auto | operator* () -> consume_iterator & |
A no-op. More... | |
auto | operator++ () -> consume_iterator & |
A no-op. More... | |
auto | operator++ (int) -> consume_iterator & |
A no-op. More... | |
An OutputIterator that simply calls a provided functor for each value assigned to it.
Definition at line 1543 of file iterators.h.
using kblib::consume_iterator< F >::difference_type = void |
Definition at line 1549 of file iterators.h.
using kblib::consume_iterator< F >::iterator_category = std::output_iterator_tag |
Definition at line 1552 of file iterators.h.
using kblib::consume_iterator< F >::pointer = void |
Definition at line 1550 of file iterators.h.
using kblib::consume_iterator< F >::reference = void |
Definition at line 1551 of file iterators.h.
using kblib::consume_iterator< F >::value_type = void |
Definition at line 1548 of file iterators.h.
|
inlineexplicit |
Constructs a consume_iterator with the given function object.
f | The functor to pass values to. |
Definition at line 1559 of file iterators.h.
|
inline |
A no-op.
Definition at line 1578 of file iterators.h.
|
inline |
A no-op.
Definition at line 1582 of file iterators.h.
|
inline |
A no-op.
Definition at line 1586 of file iterators.h.
|
inlinenoexcept |
Pass value to F.
value | The argument for the functor. |
Definition at line 1569 of file iterators.h.