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
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
max_evaluations | Run options with only an evaluation budget: easylocal::max_evaluations(10000). |