1 #ifndef BOOST_METAPARSE_GETTING_STARTED_5_2_2_HPP
2 #define BOOST_METAPARSE_GETTING_STARTED_5_2_2_HPP
4 // Automatically generated header file
6 // Definitions before section 5.2.1
9 // Definitions of section 5.2.1
10 #include <boost/mpl/fold.hpp>
12 using vector_of_numbers =
19 template <class Vector>
25 boost::mpl::plus<boost::mpl::_1, boost::mpl::_2>
31 // sum_vector<vector_of_numbers>::type
33 template <class Sum, class Item>
37 typename boost::mpl::at_c<Item, 1>::type
43 // mpl_::integral_c<int, 1>,
44 // boost::mpl::vector<mpl_::char_<'+'>, mpl_::integral_c<int, 2>>
48 // boost::mpl::at_c<temp_result, 1>::type
52 // boost::mpl::at_c<temp_result, 1>::type, /* The vector to summarise */
53 // boost::mpl::int_<0>, /* The value to start the sum from */
54 // boost::mpl::quote2<sum_items> /* The function to call in each iteration */