![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
#include <quetzal/utils/null_output_iterator.hpp>
Allows to discard the output of functions that requires an output iterator.
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = T |
using | difference_type = T |
using | pointer = T * |
using | reference = T & |
Public Member Functions | |
null_output_iterator (T p) | |
Constructor. | |
void | operator= (T p) |
Assignment. | |
null_output_iterator & | operator++ () |
Can be pre-incremented. | |
null_output_iterator | operator++ (int) |
Can be post-incremented. | |
null_output_iterator & | operator* () |
Can be dereferenced. | |
Friends | |
bool | operator== (const null_output_iterator &a, const null_output_iterator &b) |
We want comparison it != end;. | |
bool | operator!= (const null_output_iterator &a, const null_output_iterator &b) |