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

Constructors

== Synopses

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

Default&hyphen;constructs the wrapped value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:mp_units/utility/constrained/2constructor-074e.adoc[constrained]() = default;
----

[.small]#xref:mp_units/utility/constrained/2constructor-074e.adoc[_» more&period;&period;&period;_]#

Constructs the wrapper from a value of the underlying type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
explicit(false)
xref:mp_units/utility/constrained/2constructor-0a.adoc[constrained](T v) noexcept;
----

[.small]#xref:mp_units/utility/constrained/2constructor-0a.adoc[_» more&period;&period;&period;_]#

== 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 value to wrap
|===


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