BloombergLP::bsls::operator==

Return true if the specified lhs and rhs intervals are equal.

Synopsis

Declared in <bsls_timeinterval.h>

bool
operator==(
    TimeInterval const& lhs,
    TimeInterval const& rhs);

Description

Return true if the specified lhs and rhs time intervals have the same value, and false otherwise. Two time intervals have the same value if their respective second and nanosecond fields have the same value. The behavior is undefined unless operands of type double can be converted to valid TimeInterval objects.

Return Value

true if lhs and rhs have the same value; false otherwise

Parameters

NameDescription
lhsleft-hand time interval
rhsright-hand time interval