If what you're looking for is a kind of indexOf feature, I guess the example from Boost.MPL doc concerning find
will do the trick:
typedef vector types;
typedef find::type iter;
BOOST_MPL_ASSERT(( is_same< deref::type, unsigned > ));
BOOST_MPL_ASSERT_RELATION( iter::pos::value, ==, 2 );