• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_POP_BACK_HPP
2 #define BOOST_METAPARSE_V1_CPP98_IMPL_POP_BACK_HPP
3 
4 // Copyright Abel Sinkovics (abel@sinkovics.hu)  2013.
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/cpp98/fwd/string.hpp>
10 #include <boost/metaparse/v1/cpp98/impl/push_front_c.hpp>
11 #include <boost/metaparse/v1/cpp98/impl/size.hpp>
12 #include <boost/metaparse/v1/cpp98/impl/update_c.hpp>
13 
14 namespace boost
15 {
16   namespace metaparse
17   {
18     namespace v1
19     {
20       namespace impl
21       {
22         template <class S>
23         struct pop_back;
24 
25         template <class S>
26         struct pop_back :
27           update_c<
28             typename S::type,
29             size<typename S::type>::type::value - 1,
30             BOOST_NO_CHAR
31           >
32         {};
33       }
34     }
35   }
36 }
37 
38 #endif
39 
40