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

Computes the square power of a unit

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/Unit.adoc[Unit] auto
square(auto u);
----

== Return Value

Unit The result of computation

== Parameters

[cols=2]
|===
| Name
| Description
| *u*
| Unit being the base of the operation
|===


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