Quick Links:

bal | bbl | bdl | bsl

Static Public Attributes

bsls::TimeInterval_DurationTraits< REP, PERIOD > Struct Template Reference

#include <bsls_timeinterval.h>

List of all members.

Static Public Attributes

static const bool k_IS_FLOAT = TimeInterval_RepTraits<REP>::k_IS_FLOAT
static const bool k_IS_IMPLICIT = (std::nano::den % PERIOD::den == 0)
static const bool k_IMPLICIT_CONVERSION_ENABLED
static const bool k_EXPLICIT_CONVERSION_ENABLED

Detailed Description

template<class REP, class PERIOD>
struct bsls::TimeInterval_DurationTraits< REP, PERIOD >

Trait metafunction that determines whether the std::chrono::duration<REP, PERIOD> object can be converted to bsls::TimeInterval either implicitly or explicitly.

See Component bsls_timeinterval


Member Data Documentation

template<class REP, class PERIOD>
const bool bsls::TimeInterval_DurationTraits< REP, PERIOD >::k_IS_FLOAT = TimeInterval_RepTraits<REP>::k_IS_FLOAT [static]
template<class REP, class PERIOD>
const bool bsls::TimeInterval_DurationTraits< REP, PERIOD >::k_IS_IMPLICIT = (std::nano::den % PERIOD::den == 0) [static]

This compile time constant is true if any possible value of an 'stdchrono::duration<REP, PERIOD> object will be represented by integer nanoseconds (fractions of nanoseconds are not required). Otherwise this value is false.

template<class REP, class PERIOD>
const bool bsls::TimeInterval_DurationTraits< REP, PERIOD >::k_IMPLICIT_CONVERSION_ENABLED [static]
Initial value:
template<class REP, class PERIOD>
const bool bsls::TimeInterval_DurationTraits< REP, PERIOD >::k_EXPLICIT_CONVERSION_ENABLED [static]
Initial value:

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