[#mp_units-contains-0c8] = xref:mp_units.adoc[mp_units]::contains :relfileprefix: ../ :mrdocs: Checks whether the type `T` matches the type of any of the non‐type template arguments `Vs` == Synopsis Declared in `<mp‐units/ext/type_traits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, auto Vs...> [[nodiscard]] consteval bool contains(); ---- == Return Value `true` if `T` matches the type of at least one of `Vs`, `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 among the types of `Vs` | *Vs* | The non‐type template arguments whose types are checked against `T` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#