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... | |
consume_iterator (const consume_iterator &)=default | |
consume_iterator (consume_iterator &&)=default | |
auto | operator= (const consume_iterator &) &-> consume_iterator &=default |
auto | operator= (consume_iterator &&) &-> consume_iterator &=default |
~consume_iterator ()=default | |
template<typename V > | |
auto | operator= (V &&value) noexcept(noexcept(kblib::invoke(fun, std::forward< V >(value)))) -> kblib::ignore_t< decltype(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 1550 of file iterators.h.
using kblib::consume_iterator< F >::difference_type = void |
Definition at line 1556 of file iterators.h.
using kblib::consume_iterator< F >::iterator_category = std::output_iterator_tag |
Definition at line 1559 of file iterators.h.
using kblib::consume_iterator< F >::pointer = void |
Definition at line 1557 of file iterators.h.
using kblib::consume_iterator< F >::reference = void |
Definition at line 1558 of file iterators.h.
using kblib::consume_iterator< F >::value_type = void |
Definition at line 1555 of file iterators.h.
|
inlineexplicit |
Constructs a consume_iterator with the given function object.
f | The functor to pass values to. |
Definition at line 1566 of file iterators.h.
|
default |
|
default |
|
default |
|
inline |
A no-op.
Definition at line 1593 of file iterators.h.
|
inline |
A no-op.
Definition at line 1597 of file iterators.h.
|
inline |
A no-op.
Definition at line 1601 of file iterators.h.
|
default |
|
default |
|
inlinenoexcept |
Pass value to F.
value | The argument for the functor. |
Definition at line 1582 of file iterators.h.