Equality operators

Synopses

Declared in <bsls_timeinterval.h>

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.

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

Same as the preceding overload, converting rhs from double.

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

Same as the preceding overload, converting lhs from double.

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

Created with MrDocs