Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_POP_BACK_HPP
0002 #define BOOST_METAPARSE_V1_CPP98_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/cpp98/fwd/string.hpp>
0010 #include <boost/metaparse/v1/cpp98/impl/push_front_c.hpp>
0011 #include <boost/metaparse/v1/cpp98/impl/size.hpp>
0012 #include <boost/metaparse/v1/cpp98/impl/update_c.hpp>
0013 
0014 namespace boost
0015 {
0016   namespace metaparse
0017   {
0018     namespace v1
0019     {
0020       namespace impl
0021       {
0022         template <class S>
0023         struct pop_back;
0024 
0025         template <class S>
0026         struct pop_back :
0027           update_c<
0028             typename S::type,
0029             size<typename S::type>::type::value - 1,
0030             BOOST_NO_CHAR
0031           >
0032         {};
0033       }
0034     }
0035   }
0036 }
0037 
0038 #endif
0039