[#absl-operator_minus-01d] = xref:absl.adoc[absl]::operator‐ :relfileprefix: ../ :mrdocs: Unary minus operators == Synopses Declared in `<absl/numeric/int128.h>` Returns the negation of a duration. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/Duration.adoc[Duration] xref:absl/operator_minus-09.adoc[operator‐](xref:absl/Duration.adoc[Duration] d); ---- [.small]#xref:absl/operator_minus-09.adoc[_» more..._]# Returns the arithmetic negation of `v`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/int128.adoc[int128] xref:absl/operator_minus-0ee.adoc[operator‐](xref:absl/int128.adoc[int128] v); ---- [.small]#xref:absl/operator_minus-0ee.adoc[_» more..._]# Returns the arithmetic negation of `val`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/uint128.adoc[uint128] xref:absl/operator_minus-06.adoc[operator‐](xref:absl/uint128.adoc[uint128] val); ---- [.small]#xref:absl/operator_minus-06.adoc[_» more..._]# Returns the difference of two durations. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Duration.adoc[Duration] xref:absl/operator_minus-01a.adoc[operator‐]( xref:absl/Duration.adoc[Duration] lhs, xref:absl/Duration.adoc[Duration] rhs); ---- [.small]#xref:absl/operator_minus-01a.adoc[_» more..._]# Returns the time obtained by moving a time back by a duration. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Time.adoc[Time] xref:absl/operator_minus-0ea.adoc[operator‐]( xref:absl/Time.adoc[Time] lhs, xref:absl/Duration.adoc[Duration] rhs); ---- [.small]#xref:absl/operator_minus-0ea.adoc[_» more..._]# Returns the duration between two times. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Duration.adoc[Duration] xref:absl/operator_minus-0b.adoc[operator‐]( xref:absl/Time.adoc[Time] lhs, xref:absl/Time.adoc[Time] rhs); ---- [.small]#xref:absl/operator_minus-0b.adoc[_» more..._]# Returns the difference of `lhs` and `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/int128.adoc[int128] xref:absl/operator_minus-0a.adoc[operator‐]( xref:absl/int128.adoc[int128] lhs, xref:absl/int128.adoc[int128] rhs); ---- [.small]#xref:absl/operator_minus-0a.adoc[_» more..._]# Returns the difference of `lhs` and `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/uint128.adoc[uint128] xref:absl/operator_minus-05.adoc[operator‐]( xref:absl/uint128.adoc[uint128] lhs, xref:absl/uint128.adoc[uint128] rhs); ---- [.small]#xref:absl/operator_minus-05.adoc[_» 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 [cols="1,4"] |=== | Name| Description | *d* | The duration to negate. | *v* | The operand. | *val* | The operand. | *lhs* | The left‐hand duration. | *rhs* | The right‐hand duration. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#