41 period > 0,
"Period of iterations must be a positive integer.");
Class to check periods of iterations.
auto operator++() noexcept -> iteration_period_checker &
Iterate.
void reset() noexcept
Reset the counter.
index_type period_
Period.
index_type counter_
Iteration counter.
void iterate() noexcept
Iterate.
iteration_period_checker(index_type period)
Constructor.
auto is_start_of_period() const noexcept
Check whether the current iteration is a start of the period.
Definition of exceptions.
Definition of index_type type.
Definition of macros for logging.
std::ptrdiff_t index_type
Type of indices in this library.
Definition of NUM_COLLECT_PRECONDITION macro.
#define NUM_COLLECT_PRECONDITION(CONDITION,...)
Check whether a precondition is satisfied and throw an exception if not.