typedef boost::mpl::vector<
signed char, short, int, long> signed_types;
那么,我们如何用类型序列来表示单位[5]呢?由于数值型的元函数传递和返回的类型是具有内嵌::value的外覆类,所以数值序列其实是外覆类型的序列(另一个多态的例子)。为了使事情变得更为简单,mpl提供了int_<n>类模板,它以一个内嵌的::value来表现它的整型参数n:
#include <boost/mpl/int.hpp>
namespace mpl = boost::mpl;[6] // namespace alias