Specialization for void return type. More...
#include <optional_last_value.hpp>
Public Types | |
using | Result_type = void |
Type of object the iterator range points to. | |
Public Member Functions | |
template<typename InputIterator > | |
auto | operator() (InputIterator first, InputIterator last) const -> Result_type |
Specialization for void return type.
Useful when dereferencing of iterators produces side effects.
|
inline |
first | Input iterator to the first element in the range. |
last | Input iterator to one past the last element in the range. |