back_inserter.hpp 674 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BOOST_METAPARSE_V1_IMPL_BACK_INSERTER_HPP
  2. #define BOOST_METAPARSE_V1_IMPL_BACK_INSERTER_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
  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/mpl/push_back.hpp>
  8. namespace boost
  9. {
  10. namespace metaparse
  11. {
  12. namespace v1
  13. {
  14. namespace impl
  15. {
  16. struct back_inserter
  17. {
  18. typedef back_inserter type;
  19. template <class T0, class T1>
  20. struct apply : boost::mpl::push_back<T0, T1> {};
  21. };
  22. }
  23. }
  24. }
  25. }
  26. #endif