[#absl-operator_minus-01d]
= xref:absl.adoc[absl]::operator&hyphen;
:relfileprefix: ../
:mrdocs:

Unary minus operators

== Synopses

Declared in `&lt;absl&sol;numeric&sol;int128&period;h&gt;`

Returns the negation of a duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/operator_minus-09.adoc[operator&hyphen;](xref:absl/Duration.adoc[Duration] d);
----

[.small]#xref:absl/operator_minus-09.adoc[_» more&period;&period;&period;_]#

Returns the arithmetic negation of `v`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128.adoc[int128]
xref:absl/operator_minus-0ee.adoc[operator&hyphen;](xref:absl/int128.adoc[int128] v);
----

[.small]#xref:absl/operator_minus-0ee.adoc[_» more&period;&period;&period;_]#

Returns the arithmetic negation of `val`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/uint128.adoc[uint128]
xref:absl/operator_minus-06.adoc[operator&hyphen;](xref:absl/uint128.adoc[uint128] val);
----

[.small]#xref:absl/operator_minus-06.adoc[_» more&period;&period;&period;_]#

Returns the difference of two durations&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Duration.adoc[Duration]
xref:absl/operator_minus-01a.adoc[operator&hyphen;](
    xref:absl/Duration.adoc[Duration] lhs,
    xref:absl/Duration.adoc[Duration] rhs);
----

[.small]#xref:absl/operator_minus-01a.adoc[_» more&period;&period;&period;_]#

Returns the time obtained by moving a time back by a duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Time.adoc[Time]
xref:absl/operator_minus-0ea.adoc[operator&hyphen;](
    xref:absl/Time.adoc[Time] lhs,
    xref:absl/Duration.adoc[Duration] rhs);
----

[.small]#xref:absl/operator_minus-0ea.adoc[_» more&period;&period;&period;_]#

Returns the duration between two times&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Duration.adoc[Duration]
xref:absl/operator_minus-0b.adoc[operator&hyphen;](
    xref:absl/Time.adoc[Time] lhs,
    xref:absl/Time.adoc[Time] rhs);
----

[.small]#xref:absl/operator_minus-0b.adoc[_» more&period;&period;&period;_]#

Returns the difference of `lhs` and `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128.adoc[int128]
xref:absl/operator_minus-0a.adoc[operator&hyphen;](
    xref:absl/int128.adoc[int128] lhs,
    xref:absl/int128.adoc[int128] rhs);
----

[.small]#xref:absl/operator_minus-0a.adoc[_» more&period;&period;&period;_]#

Returns the difference of `lhs` and `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/uint128.adoc[uint128]
xref:absl/operator_minus-05.adoc[operator&hyphen;](
    xref:absl/uint128.adoc[uint128] lhs,
    xref:absl/uint128.adoc[uint128] rhs);
----

[.small]#xref:absl/operator_minus-05.adoc[_» more&period;&period;&period;_]#

== Return Value

* The negated duration&period;
* The negated value `&hyphen;v`&period;
* The two&apos;s&hyphen;complement negation of `val`&period;
* The difference `lhs &hyphen; rhs`&period;
* The time `lhs &hyphen; rhs`&period;
* The duration `lhs &hyphen; rhs`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *d*
| The duration to negate&period;
| *v*
| The operand&period;
| *val*
| The operand&period;
| *lhs*
| The left&hyphen;hand duration&period;
| *rhs*
| The right&hyphen;hand duration&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
