Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::temporal::DurationsParams< Duration > Struct Template Reference

Parameters for durations() generator over a std::chrono::duration. More...

#include <temporal.h>

Public Attributes

std::optional< Duration > min_value
std::optional< Duration > max_value

Detailed Description

template<typename Duration = SignedDuration>
struct hegel::generators::temporal::DurationsParams< Duration >

Parameters for durations() generator over a std::chrono::duration.

Template Parameters
DurationThe std::chrono::duration type, or SignedDuration for the specialization that also takes a precision.

Member Data Documentation

◆ max_value

template<typename Duration = SignedDuration>
std::optional<Duration> hegel::generators::temporal::DurationsParams< Duration >::max_value

Maximum duration (inclusive). Default: the highest value both the type and the engine hold.

◆ min_value

template<typename Duration = SignedDuration>
std::optional<Duration> hegel::generators::temporal::DurationsParams< Duration >::min_value

Minimum duration (inclusive). Default: the lowest value both the type and the engine hold.


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