[#mp_units-quantity-01-magnitude]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity-01.adoc[quantity]::magnitude
:relfileprefix: ../../
:mrdocs:

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
magnitude() const
requires (get&lowbar;character(quantity&lowbar;spec)&period;order &gt;&equals; quantity&lowbar;tensor&lowbar;order&colon;&colon;vector) &amp;&amp; detail&colon;&colon;HasMagnitude&lt;rep&gt;;
----

== Return Value

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

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