Unary minus operators
Synopses
Declared in <absl/numeric/int128.h>
Returns the negation of a duration.
constexpr
Duration
operator‐(Duration d);
Returns the arithmetic negation of v.
constexpr
int128
operator‐(int128 v);
Returns the arithmetic negation of val.
constexpr
uint128
operator‐(uint128 val);
Returns the difference of two durations.
Duration
operator‐(
Duration lhs,
Duration rhs);
Returns the time obtained by moving a time back by a duration.
Time
operator‐(
Time lhs,
Duration rhs);
Returns the duration between two times.
Duration
operator‐(
Time lhs,
Time rhs);
Returns the difference of lhs and rhs.
constexpr
int128
operator‐(
int128 lhs,
int128 rhs);
Returns the difference of lhs and rhs.
constexpr
uint128
operator‐(
uint128 lhs,
uint128 rhs);
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
Name |
Description |
d |
The duration to negate. |
v |
The operand. |
val |
The operand. |
lhs |
The left‐hand duration. |
rhs |
The right‐hand duration. |
Created with MrDocs