symmetric_coroutine.hpp 873 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright Oliver Kowalke 2009.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_COROUTINES_SYMMETRIC_COROUTINE_H
  6. #define BOOST_COROUTINES_SYMMETRIC_COROUTINE_H
  7. #include <boost/config.hpp>
  8. #include <boost/coroutine/detail/symmetric_coroutine_call.hpp>
  9. #include <boost/coroutine/detail/symmetric_coroutine_yield.hpp>
  10. #ifdef BOOST_HAS_ABI_HEADERS
  11. # include BOOST_ABI_PREFIX
  12. #endif
  13. namespace boost {
  14. namespace coroutines {
  15. template< typename T >
  16. struct symmetric_coroutine
  17. {
  18. typedef detail::symmetric_coroutine_call< T > call_type;
  19. typedef detail::symmetric_coroutine_yield< T > yield_type;
  20. };
  21. }}
  22. #ifdef BOOST_HAS_ABI_HEADERS
  23. # include BOOST_ABI_SUFFIX
  24. #endif
  25. #endif // BOOST_COROUTINES_SYMMETRIC_COROUTINE_H