Unary minus operators

Synopses

Declared in <bsls_timeinterval.h>

Return a TimeInterval value that is the negative of the specified rhs time interval. The behavior is undefined unless LLONG_MIN != rhs.seconds().

Same as the preceding overload, converting lhs from double.

bsls::TimeInterval
operator‐(
    double lhs,
    TimeInterval const& rhs);

Same as the preceding overload, converting rhs from double.

bsls::TimeInterval
operator‐(
    TimeInterval const& lhs,
    double rhs);

Return a TimeInterval value that is the difference between the specified lhs and rhs time intervals. The behavior is undefined unless (1) operands of type double can be converted to valid TimeInterval objects, (2) the value on the right‐hand side (potentially after conversion to a TimeInterval) has a number of seconds that is not LLONG_MIN, and (3) the resulting time interval can be represented with a 64‐bit signed integer.

Created with MrDocs