accept.hpp 817 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef BOOST_METAPARSE_V1_ACCEPT_HPP
  2. #define BOOST_METAPARSE_V1_ACCEPT_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
  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/fwd/accept.hpp>
  8. #include <boost/metaparse/v1/accept_tag.hpp>
  9. namespace boost
  10. {
  11. namespace metaparse
  12. {
  13. namespace v1
  14. {
  15. template <class Result, class Remaining, class Pos>
  16. struct accept
  17. {
  18. typedef accept_tag tag;
  19. typedef
  20. accept<Result, typename Remaining::type, typename Pos::type>
  21. type;
  22. typedef Result result;
  23. typedef Remaining remaining;
  24. typedef Pos source_position;
  25. };
  26. }
  27. }
  28. }
  29. #endif