Trait metafunction that determines whether the std::chrono::duration<REP, PERIOD> object can be converted to bsls::TimeInterval either implicitly or explicitly.
Declared in <bsls_timeinterval.h>
template<
class REP,
class PERIOD>
struct TimeInterval_DurationTraits;
| Name | Description |
|---|---|
k_EXPLICIT_CONVERSION_ENABLED | True if the duration converts to TimeInterval explicitly. |
k_IMPLICIT_CONVERSION_ENABLED | True if the duration converts to TimeInterval implicitly. |
k_IS_FLOAT | True if REP is a floating-point type. |
k_IS_IMPLICIT | True if every duration value maps to integer nanoseconds. |