11 std::function<
bool(
long,
long)> lambda;
20 sentinel(std::function<
bool(
long,
long)> lambda) : lambda(lambda) {}
29 return lambda(value,
step);
A wrapper for std::vector.
Definition array.hpp:72
A sentinel that stops a numeric generator when the value reaches a certain point.
Definition sentinel.hpp:10
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
const sentinel infinity
A sentinel that tells numeric generators to run forever.