Hegel 0.18.3
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
 Inclusive minimum. Default: no minimum.
std::optional< T > max_value
 Inclusive maximum. Default: no maximum.
std::optional< T > min_value_exclusive
std::optional< T > max_value_exclusive
std::optional< bool > allow_nan
 Allow NaN. Default: true if unbounded.
std::optional< bool > allow_infinity
 Allow infinity. Default: true if unbounded.
std::optional< bool > allow_subnormal

Detailed Description

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

Parameters for floats() generator.

Template Parameters
TThe floating point type

Member Data Documentation

◆ allow_subnormal

template<typename T>
std::optional<bool> hegel::generators::FloatsParams< T >::allow_subnormal

Allow subnormal values. Default: true when the bounds admit any

◆ max_value_exclusive

template<typename T>
std::optional<T> hegel::generators::FloatsParams< T >::max_value_exclusive

A maximum that is itself excluded. Not together with max_value

◆ min_value_exclusive

template<typename T>
std::optional<T> hegel::generators::FloatsParams< T >::min_value_exclusive

A minimum that is itself excluded. Not together with min_value


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