...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Front Page / Algorithms / Querying Algorithms / contains |
Returns a true-valued Integral Constant if one or more elements in Sequence are identical to T.
#include <boost/mpl/contains.hpp>
Parameter | Requirement | Description |
---|---|---|
Sequence | Forward Sequence | A sequence to be examined. |
T | Any type | A type to search for. |
For any Forward Sequence s and arbitrary type t:
typedef contains::type r;
Return type: | |
---|---|
Semantics: | Equivalent to typedef not_< is_same< find |
Linear. At most size::value comparisons for identity.
typedef vectortypes; BOOST_MPL_ASSERT_NOT(( contains ));