carl  24.04
Computer ARithmetic Library
carl::settings::duration Struct Reference

Helper type to parse duration as std::chrono values with boost::program_options. More...

#include <settings_utils.h>

Inheritance diagram for carl::settings::duration:
Collaboration diagram for carl::settings::duration:

Public Member Functions

 duration ()=default
 
template<typename... Args>
constexpr duration (Args &&... args)
 
template<typename R , typename P >
constexpr operator std::chrono::duration< R, P > () const
 

Detailed Description

Helper type to parse duration as std::chrono values with boost::program_options.

Intended usage:

  • use boost to parse values as durations
  • access values with std::chrono::seconds(d)

Definition at line 43 of file settings_utils.h.

Constructor & Destructor Documentation

◆ duration() [1/2]

carl::settings::duration::duration ( )
default

◆ duration() [2/2]

template<typename... Args>
constexpr carl::settings::duration::duration ( Args &&...  args)
inlineconstexpr

Definition at line 47 of file settings_utils.h.

Member Function Documentation

◆ operator std::chrono::duration< R, P >()

template<typename R , typename P >
constexpr carl::settings::duration::operator std::chrono::duration< R, P > ( ) const
inlineexplicitconstexpr

Definition at line 49 of file settings_utils.h.


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