A sentinel that stops a numeric generator when the value reaches a certain point. More...
#include <sentinel.hpp>
Public Member Functions | |
| sentinel (std::function< bool(long, long)> lambda) | |
| Constructor. | |
| bool | operator() (long value, long step) const noexcept |
| Check if the generator should stop. | |
A sentinel that stops a numeric generator when the value reaches a certain point.
Constructor.
| lambda | The lambda function that determines when the generator should stop. |
Check if the generator should stop.
| value | The current value of the generator. |
| step | The step size of the generator. |