Home   Manual   Type Index   Symbol Index   Topics Index

std::value_range

constructs a value-range

Parameters

lower_bound

the first value in the value-range

upper_bound

the last value in the value-range

Description

Both boundary values are included within the value-range.

The boundaray values specified must support the following methods:

std::plus:

The left argument has boundary type, the right argument is an integer, the result should have boundary type.

std::minus:

If the left argument has boundary type and the right argument is an integer then the result should have boundary type.

If both arguments have boundary type then the result should be an integer.

std::less:

Both arguments have boundary type and the result should be std::true or std::false.