11 std::function<bool(
long,
long)> lambda;
20 sentinel(std::function<
bool(
long,
long)> lambda) : lambda(lambda) {}
29 return lambda(value, step);
sentinel(std::function< bool(long, long)> lambda)
Constructor.
Definition sentinel.hpp:20
bool operator()(long value, long step) const noexcept
Check if the generator should stop.
Definition sentinel.hpp:28
Section containing core functions and classes.
const sentinel infinity
A sentinel that tells numeric generators to run forever.