|
Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Output iterator calling a callback function on assignment. More...
#include <iterator.hpp>
Public Types | |
| using | difference_type = void |
| using | value_type = void |
| using | pointer = void |
| using | reference = void |
| using | iterator_category = std::output_iterator_tag |
Public Member Functions | |
| callback_iterator (T callback) | |
| template<class R > | |
| callback_iterator & | operator= (R &&value) |
| callback_iterator & | operator* () |
| callback_iterator & | operator++ () |
| callback_iterator | operator++ (int) |
Output iterator calling a callback function on assignment.
| the | type of value accepted by the callback. The type must include the reference and cv-qualification if needed. |
| using ext::callback_iterator< T >::difference_type = void |
| using ext::callback_iterator< T >::iterator_category = std::output_iterator_tag |
| using ext::callback_iterator< T >::pointer = void |
| using ext::callback_iterator< T >::reference = void |
| using ext::callback_iterator< T >::value_type = void |
|
inlineexplicit |
Constructor of the callback iterator based on callback
| callback | the function to call on asignment |
|
inline |
Typical implementation of output iterator dereference operator producing itself.
|
inline |
Increment operator implementation as no operation.
|
inline |
Increment operator implementation as no operation.
|
inline |
Asignment operator calling the calback with the accepted parameter.
| value | the value to pass to the callback |