EasyLocalAPI reference iolab-uniud/easylocal

easylocal::limit

A count that may be unlimited.

Synopsis

Declared in <easylocal/utils/limit.hpp>

class limit;

Description

It converts to and from std::size_t, so a limit is set with a number and compared with a count as one; unlimited is the largest std::size_t, which no count reaches. Zero is a limit of zero.

Member Functions

NameDescription
limit [constructor]No limit: unlimited.
limit [constructor]No limit.
limit [constructor]A limit of count.
is_unlimited Whether the limit is unlimited.
operator std::size_t The count: unlimited is the largest std::size_t.

Non-Member Functions

NameDescription
max_evaluationsRun options with only an evaluation budget: easylocal::max_evaluations(10000).