metaparse/doc/getting_started_7.qbk
2015-07-19 09:53:35 +02:00

5 lines
199 B
Plaintext

[#getting_started_7]
template <class Vector> struct sum_vector : boost::mpl::fold< Vector, boost::mpl::int_<0>, boost::mpl::lambda< boost::mpl::plus<boost::mpl::_1, boost::mpl::_2> >::type > {};