push_front_result.hpp 824 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_PUSH_FRONT_RESULT_HPP
  2. #define BOOST_METAPARSE_V1_CPP11_IMPL_PUSH_FRONT_RESULT_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2018.
  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/get_result.hpp>
  8. #include <boost/mpl/push_front.hpp>
  9. namespace boost
  10. {
  11. namespace metaparse
  12. {
  13. namespace v1
  14. {
  15. namespace impl
  16. {
  17. template <class Value>
  18. struct push_front_result
  19. {
  20. typedef push_front_result type;
  21. template <class Seq>
  22. struct apply :
  23. boost::mpl::push_front<Seq, typename get_result<Value>::type>
  24. {};
  25. };
  26. }
  27. }
  28. }
  29. }
  30. #endif