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

◆ container() [2/2]

template<typename T , typename F >
T halcheck::gen::container ( lib::atom id,
std::size_t size,
F gen )

Generates a random container value.

Template Parameters
TThe type of container to generate.
FA nullary function type.
Parameters
idA unique identifier for the generated value.
sizeThe number of elements to generate.
genA function producing random values for the container.
Returns
A random container whose elements are drawn from gen.