BloombergLP::bslmt::ChronoUtil::isMatchingClock

Return whether CLOCK matches the specified clockType.

Synopsis

Declared in <bslmt_chronoutil.h>

template<class CLOCK>
static
bool
isMatchingClock(bsls::SystemClockType::Enum clockType);

Description

Return true if the specified (template parameter) type CLOCK matches the specified clockType, and false otherwise.

Specializations

NameDescription
isMatchingClock<steady_clock> Return whether steady_clock matches the specified clockType.
isMatchingClock<system_clock> Return whether system_clock matches the specified clockType.

Return Value

true if CLOCK matches clockType, and false otherwise

Parameters

NameDescription
clockTypesystem clock type to compare against CLOCK