Hegel 0.3.5
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::FloatsParams< T > Struct Template Reference

Parameters for floats() generator. More...

#include <numeric.h>

Public Attributes

std::optional< T > min_value
 Minimum value. Default: no minimum.
std::optional< T > max_value
 Maximum value. Default: no maximum.
bool exclude_min
 If true, exclude min_value (exclusive bound).
bool exclude_max
 If true, exclude max_value (exclusive bound).
std::optional< bool > allow_nan
 Allow NaN. Default: true if unbounded.
std::optional< bool > allow_infinity
 Allow infinity. Default: true if unbounded.

Detailed Description

template<typename T>
struct hegel::generators::FloatsParams< T >

Parameters for floats() generator.

Template Parameters
TThe floating point type

Member Data Documentation

◆ exclude_max

template<typename T>
bool hegel::generators::FloatsParams< T >::exclude_max
Initial value:
=
false

If true, exclude max_value (exclusive bound).

◆ exclude_min

template<typename T>
bool hegel::generators::FloatsParams< T >::exclude_min
Initial value:
=
false

If true, exclude min_value (exclusive bound).


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