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

Name

Description

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

Name

Description

clockType

system clock type to compare against CLOCK

Created with MrDocs