halcheck 1.0
Loading...
Searching...
No Matches

◆ range

const range_t halcheck::gen::range
static

Generates a random value in an closed-open interval.

Signature
template<typename T>
T operator()(lib::atom id, T min, T max) // (1)
template<typename U, typename V>
lib::common_type_t<U, V> operator()(lib::atom id, U min, V max) // (2)
lib::variant< lib::symbol, lib::number > atom
An atom is either a symbol or a number.
Definition atom.hpp:194
typename std::common_type< Args... >::type common_type_t
An implementation of std::common_type_t.
Definition type_traits.hpp:133

An invocation of this function is well-formed only if of the following is true:

Template Parameters
TThe type of value to generate.
UThe type of the minimum value to generate.
VThe type of the maximum value to generate.
Parameters
idA unique identifier for the generated value.
minThe minimum value to generate, inclusive.
maxThe maximum value to generate, exclusive.
Returns
A value in the range [min, max).