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

Returns the first of the non&hyphen;type template arguments `V1, V2, Vs&period;&period;&period;` whose type matches `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;
    typename T,
    auto V1,
    auto V2,
    auto Vs&period;&period;&period;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
auto
get();
----

== Return Value

The value of the first argument whose type matches `T`

[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 type to look for among the types of `V1, V2, Vs&period;&period;&period;`
| *V1*
| The first non&hyphen;type template argument to check
| *V2*
| The second non&hyphen;type template argument to check
| *Vs*
| The remaining non&hyphen;type template arguments to check
|===


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