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

Checks whether the type `T` is present in the type pack `T1, Ts&period;&period;&period;`

== 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,
    typename T1,
    typename&period;&period;&period; Ts&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
bool
contains();
----

== Return Value

`true` if `T` is the same as `T1` or one of `Ts`, `false` otherwise

[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
| *T1*
| The first type of the pack to search
| *Ts*
| The remaining types of the pack to search
|===


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