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

Parameters for instants() generator over a std::chrono::system_clock time point. More...

#include <temporal.h>

Public Attributes

std::optional< TimePoint > min_value
std::optional< TimePoint > max_value

Detailed Description

template<typename TimePoint = Instant>
struct hegel::generators::temporal::InstantsParams< TimePoint >

Parameters for instants() generator over a std::chrono::system_clock time point.

Template Parameters
TimePointThe std::chrono::time_point type, or Instant for the specialization that also takes a precision.

Member Data Documentation

◆ max_value

template<typename TimePoint = Instant>
std::optional<TimePoint> hegel::generators::temporal::InstantsParams< TimePoint >::max_value

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

◆ min_value

template<typename TimePoint = Instant>
std::optional<TimePoint> hegel::generators::temporal::InstantsParams< TimePoint >::min_value

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


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