12#include <boost/mpl/int.hpp>
13#include <boost/mpl/plus.hpp>
14#include <boost/mpl/transform.hpp>
16#include <boost/mpl/placeholders.hpp>
17using namespace boost::mpl::placeholders;
45 struct apply : boost::mpl::plus< T, boost::mpl::int_<1> > { };
53struct ex_3_1 : boost::mpl::transform<T, ex_3_1apply > { };
61 : boost::mpl::transform<
63 boost::mpl::plus< _1, boost::mpl::int_<1> >
Encapsulate solution for Exercise 3-1.
Add 1 to all items in a sequence (w/o placeholder args).
Metafunction to apply during transformation.
Add 1 to all items in a sequence (w/ placeholder args).