boost/libs/metaparse/doc/getting_started_7.qbk
2022-12-15 23:45:23 +08: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 > {};