[#mp_units-contains-0b] = xref:mp_units.adoc[mp_units]::contains :relfileprefix: ../ :mrdocs: Checks whether the type `T` is present in the type pack `T1, Ts...` == Synopsis Declared in `<mp‐units/ext/type_traits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename T1, typename... Ts> [[nodiscard]] 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]#