11 #include <boost/mpl/at.hpp> 12 #include <boost/mpl/size.hpp> 19 #ifdef MULTI_ARRAY_INT_INDEX 26 typedef int size_type;
41 typedef std::size_t size_type;
42 typedef std::ptrdiff_t index;
50 template<
typename vector,
unsigned int p,
bool = (p < boost::mpl::size<vector>::type::value) >
53 typedef boost::mpl::
int_<0> type;
56 template<
typename vector,
unsigned int p>
59 typedef boost::mpl::int_<boost::mpl::at<vector,boost::mpl::int_<p>>::type::value> type;
convert a type into constant type
This class is a trick to indicate the compiler a specific specialization pattern.