BloombergLP::bsls::TimeInterval::TimeInterval

Create a time interval having the value represented by the specified duration when the conversion requires an explicit constructor. See the implicit overload for additional details on behavior and preconditions.

Synopsis

Declared in <bsls_timeinterval.h>

template<
    class REP_TYPE,
    class PERIOD_TYPE>
constexpr
explicit
TimeInterval(
    std::chrono::duration<REP_TYPE, PERIOD_TYPE> const& duration,
    int* = 0)
requires TimeInterval_DurationTraits<
                                   REP_TYPE,
                                   PERIOD_TYPE>::k_EXPLICIT_CONVERSION_ENABLED;