[#mp_units-utility-constrained-2constructor-0a]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::xref:mp_units/utility/constrained.adoc[constrained]::constrained
:relfileprefix: ../../../
:mrdocs:

Construct from `T`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
explicit(false)
constrained(T v) noexcept;
----

== Return Value

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

[cols="1,4"]
|===
| Name| Description
| *v*
| The object to construct from
|===


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