]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/test/foldr1.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / metaparse / test / foldr1.cpp
1 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/metaparse/foldr1.hpp>
7 #include <boost/metaparse/v1/impl/front_inserter.hpp>
8
9 #include <boost/mpl/list.hpp>
10
11 using boost::metaparse::foldr1;
12 using boost::metaparse::v1::impl::front_inserter;
13
14 using boost::mpl::list;
15
16 namespace
17 {
18 template <class P>
19 struct repeated1 : foldr1<P, list<>, front_inserter> {};
20 }
21
22 #define TEST_NAME foldr1
23
24 #include "repeated1_test.hpp"
25