Distributes n
values linearly in the closed interval [from
, to
].
from <= to && n > 0
If from == to
, returns n-times to
. If n == 1
returns to
.
Synopsis of methods | |
constexpr linear_distribute_fn | linear_distribute {} |
Public Member Functions | |
template<typename T > | |
CPP_TEMPLATE_AUX_0 | c (requires ` std::is_arithmetic< T >::value) ccconstexpr auto operator()(T from |
Public Attributes | |
CPP_TEMPLATE_AUX_0 T std::ptrdiff_t n | const |
CPP_TEMPLATE_AUX_0 T | to |