Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:40:46

0001 #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_POP_BACK_HPP
0002 #define BOOST_METAPARSE_V1_CPP11_IMPL_POP_BACK_HPP
0003 
0004 // Copyright Abel Sinkovics (abel@sinkovics.hu)  2013.
0005 // Distributed under the Boost Software License, Version 1.0.
0006 //    (See accompanying file LICENSE_1_0.txt or copy at
0007 //          http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #include <boost/metaparse/v1/cpp11/fwd/string.hpp>
0010 #include <boost/metaparse/v1/cpp11/impl/push_front_c.hpp>
0011 #include <boost/metaparse/v1/cpp11/impl/size.hpp>
0012 
0013 #include <boost/mpl/clear.hpp>
0014 
0015 namespace boost
0016 {
0017   namespace metaparse
0018   {
0019     namespace v1
0020     {
0021       namespace impl
0022       {
0023         template <class S>
0024         struct pop_back;
0025 
0026         template <char C>
0027         struct pop_back<string<C>> : boost::mpl::clear<string<C>> {};
0028 
0029         template <char C, char... Cs>
0030         struct pop_back<string<C, Cs...>> :
0031           push_front_c<typename pop_back<string<Cs...>>::type, C>
0032         {};
0033       }
0034     }
0035   }
0036 }
0037 
0038 #endif
0039