Hegel 0.18.2
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::SamplesParams Struct Reference

Parameters for samples(). More...

#include <collections.h>

Public Attributes

size_t min_size = 0
 Minimum sample length.
std::optional< size_t > max_size
bool replacement = true

Detailed Description

Parameters for samples().

Member Data Documentation

◆ max_size

std::optional<size_t> hegel::generators::SamplesParams::max_size

Maximum sample length. Default: no limit (engine-chosen sizes), or the number of values without replacement

◆ replacement

bool hegel::generators::SamplesParams::replacement = true

Whether a value may be chosen more than once


The documentation for this struct was generated from the following file: