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

Name

Description

lhs

left‐hand time interval

rhs

right‐hand time interval

Created with MrDocs