]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/middle_of.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / middle_of.hpp
1 #ifndef BOOST_METAPARSE_V1_KEEP_MIDDLE_HPP
2 #define BOOST_METAPARSE_V1_KEEP_MIDDLE_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #include <boost/metaparse/v1/nth_of.hpp>
10 #include <boost/metaparse/v1/transform_error_message.hpp>
11 #include <boost/metaparse/v1/get_col.hpp>
12 #include <boost/metaparse/v1/get_line.hpp>
13
14 #include <boost/metaparse/v1/error/unpaired.hpp>
15
16 namespace boost
17 {
18 namespace metaparse
19 {
20 namespace v1
21 {
22 template <class P1, class P2, class P3>
23 struct middle_of
24 {
25 typedef middle_of type;
26
27 template <class S, class Pos>
28 struct apply :
29 nth_of_c<
30 1,
31 P1,
32 P2,
33 transform_error_message<
34 P3,
35 error::unpaired<
36 get_line<Pos>::type::value,
37 get_col<Pos>::type::value
38 >
39 >
40 >::template apply<S, Pos>
41 {};
42 };
43 }
44 }
45 }
46
47 #endif
48