![]() |
Home | Libraries | People | FAQ | More |
Returns a true-valued MPL Integral Constant if I and J are equal.
template< typename I, typename J > struct equal_to { typedef unspecified type; };
result_of::equal_to<I, J>::type
Return type: A model of MPL Integral Constant.
Semantics: Returns boost::mpl::true_ if I and J are iterators to the same position. Returns boost::mpl::false_ otherwise.
#include <boost/fusion/iterator/equal_to.hpp>
typedef vector<int,double> vec; typedef result_of::begin<vec>::type first; typedef result_of::end<vec>::type last; BOOST_MPL_ASSERT((result_of::equal_to<first, first>)); BOOST_MPL_ASSERT_NOT((result_of::equal_to<first,last>));
Copyright © 2001-2005 Joel de Guzman, Dan Marsden |