return_.hpp 692 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef BOOST_METAPARSE_V1_RETURN__HPP
  2. #define BOOST_METAPARSE_V1_RETURN__HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
  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/accept.hpp>
  8. #include <boost/metaparse/v1/get_result.hpp>
  9. #include <iostream>
  10. namespace boost
  11. {
  12. namespace metaparse
  13. {
  14. namespace v1
  15. {
  16. template <class C>
  17. struct return_
  18. {
  19. typedef return_ type;
  20. template <class S, class Pos>
  21. struct apply : accept<C, S, Pos> {};
  22. };
  23. }
  24. }
  25. }
  26. #endif