push_back_c.hpp 831 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_PUSH_BACK_C_HPP
  2. #define BOOST_METAPARSE_V1_CPP98_IMPL_PUSH_BACK_C_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/metaparse/v1/cpp98/fwd/string.hpp>
  8. #include <boost/metaparse/v1/cpp98/impl/update_c.hpp>
  9. #include <boost/metaparse/v1/cpp98/impl/size.hpp>
  10. namespace boost
  11. {
  12. namespace metaparse
  13. {
  14. namespace v1
  15. {
  16. namespace impl
  17. {
  18. template <class S, char C>
  19. struct push_back_c;
  20. template <class S, char C>
  21. struct push_back_c :
  22. update_c<typename S::type, size<typename S::type>::type::value, C>
  23. {};
  24. }
  25. }
  26. }
  27. }
  28. #endif