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