A struct which decrements anything it is added to. Suitable for use as a Delta type for range_t.
More...
#include <kblib/iterators.h>
A struct which decrements anything it is added to. Suitable for use as a Delta type for range_t.
Definition at line 589 of file iterators.h.
◆ decrementer() [1/2]
constexpr kblib::decrementer::decrementer |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ decrementer() [2/2]
constexpr kblib::decrementer::decrementer |
( |
int |
| ) |
|
|
inlineconstexprnoexcept |
◆ operator int()
constexpr kblib::decrementer::operator int |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator()()
template<typename T >
constexpr auto kblib::decrementer::operator() |
( |
T & |
t | ) |
-> T& |
|
inlineconstexpr |
◆ operator*
constexpr auto operator* |
( |
std::ptrdiff_t |
x, |
|
|
decrementer |
|
|
) |
| |
|
friend |
The documentation for this struct was generated from the following file: