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.

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

Same as the preceding overload.

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

Return the difference between the specified lhs and rhs intervals.

Return Value

  • the negative of rhs

  • difference of lhs and rhs as a TimeInterval

Parameters

Name

Description

rhs

right‐hand time interval

lhs

left‐hand seconds as double

Created with MrDocs