[#mp_units-is_eq_zero]
= xref:mp_units.adoc[mp&lowbar;units]::is&lowbar;eq&lowbar;zero
:relfileprefix: ../
:mrdocs:

Checks whether `v` compares equal to `T&colon;&colon;zero()`

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;compare&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
requires requires &lcub;
    &lcub; T&colon;&colon;zero() &rcub; &hyphen;&gt; std&colon;&colon;equality&lowbar;comparable&lowbar;with&lt;T&gt;&semi;
  &rcub;
&lsqb;&lsqb;deprecated(&quot;2&period;6&period;0&colon; compare against literal &grave;0&grave; instead&quot;), nodiscard&rsqb;&rsqb;
constexpr
bool
is&lowbar;eq&lowbar;zero(T v);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: 2&period;6&period;0&colon; compare against literal &grave;0&grave; instead. Use of this entity is allowed but discouraged.
====
== Return Value

`true` if `v &equals;&equals; T&colon;&colon;zero()`, `false` otherwise

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The value to compare against `T&colon;&colon;zero()`
|===


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