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

Returns a default&hyphen;constructed instance of `T1`, given it is a specialization of the class template `T`

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;ext&sol;type&lowbar;traits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    template&lt;typename&period;&period;&period;&gt; typename T,
    typename T1&gt;
requires is&lowbar;specialization&lowbar;of&lt;T1, T&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
auto
get();
----

== Return Value

A default&hyphen;constructed instance of `T1`

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

[cols="1,4"]
|===
| Name| Description
| *T*
| The class template (taking type parameters) that `T1` must specialize
| *T1*
| The type to return, required to be a specialization of `T`
|===


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