[#mp_units-isfinite-0d]
= xref:mp_units.adoc[mp&lowbar;units]::isfinite
:relfileprefix: ../
:mrdocs:

Determines if a quantity is finite&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    auto R,
    typename Rep&gt;
requires requires(Rep v) &lcub; isfinite(v)&semi; &rcub; &verbar;&verbar; requires(Rep v) &lcub; std&colon;&colon;isfinite(v)&semi; &rcub;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
bool
isfinite(xref:mp_units/quantity-01.adoc[quantity&lt;R, Rep&gt;] const& a) noexcept;
----

== Return Value

bool&colon; Whether the quantity is finite or not&period;

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

[cols="1,4"]
|===
| Name| Description
| *a&colon;*
| Quantity to analyze&period;
| *a*
| A quantity
|===


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