BloombergLP::bsls::operator-

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().

bsls::TimeInterval
operator-(TimeInterval const& rhs);
» more...

Same as the preceding overload.

bsls::TimeInterval
operator-(
    double lhs,
    TimeInterval const& rhs);
» more...

Same as the preceding overload.

bsls::TimeInterval
operator-(
    TimeInterval const& lhs,
    double rhs);
» more...

Return the difference between the specified lhs and rhs intervals.

bsls::TimeInterval
operator-(
    TimeInterval const& lhs,
    TimeInterval const& rhs);
» more...

Return Value

  • the negative of rhs
  • difference of lhs and rhs as a TimeInterval

Parameters

NameDescription
rhsright-hand time interval
lhsleft-hand seconds as double