absl::operator-

Unary minus operators

Synopses

Declared in <absl/numeric/int128.h>

Returns the negation of a duration.

constexpr
Duration
operator-(Duration d);
» more...

Returns the arithmetic negation of v.

constexpr
int128
operator-(int128 v);
» more...

Returns the arithmetic negation of val.

constexpr
uint128
operator-(uint128 val);
» more...

Returns the difference of two durations.

Duration
operator-(
    Duration lhs,
    Duration rhs);
» more...

Returns the time obtained by moving a time back by a duration.

Time
operator-(
    Time lhs,
    Duration rhs);
» more...

Returns the duration between two times.

Duration
operator-(
    Time lhs,
    Time rhs);
» more...

Returns the difference of lhs and rhs.

constexpr
int128
operator-(
    int128 lhs,
    int128 rhs);
» more...

Returns the difference of lhs and rhs.

constexpr
uint128
operator-(
    uint128 lhs,
    uint128 rhs);
» more...

Return Value

  • The negated duration.
  • The negated value -v.
  • The two's-complement negation of val.
  • The difference lhs - rhs.
  • The time lhs - rhs.
  • The duration lhs - rhs.

Parameters

NameDescription
dThe duration to negate.
vThe operand.
valThe operand.
lhsThe left-hand duration.
rhsThe right-hand duration.