Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/coroutine is written in an unsupported language. File is not indexed.

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP___CXX03_COROUTINE
0011 #define _LIBCPP___CXX03_COROUTINE
0012 
0013 /**
0014     coroutine synopsis
0015 
0016 namespace std {
0017 // [coroutine.traits]
0018 template <class R, class... ArgTypes>
0019   struct coroutine_traits;
0020 // [coroutine.handle]
0021 template <class Promise = void>
0022   struct coroutine_handle;
0023 // [coroutine.handle.compare]
0024 constexpr bool operator==(coroutine_handle<> x, coroutine_handle<> y) noexcept;
0025 constexpr strong_ordering operator<=>(coroutine_handle<> x, coroutine_handle<> y) noexcept;
0026 // [coroutine.handle.hash]
0027 template <class T> struct hash;
0028 template <class P> struct hash<coroutine_handle<P>>;
0029 // [coroutine.noop]
0030 struct noop_coroutine_promise;
0031 template<> struct coroutine_handle<noop_coroutine_promise>;
0032 using noop_coroutine_handle = coroutine_handle<noop_coroutine_promise>;
0033 noop_coroutine_handle noop_coroutine() noexcept;
0034 // [coroutine.trivial.awaitables]
0035 struct suspend_never;
0036 struct suspend_always;
0037 } // namespace std
0038 
0039  */
0040 
0041 #include <__cxx03/__config>
0042 
0043 #if _LIBCPP_STD_VER >= 20
0044 #  include <__cxx03/__coroutine/coroutine_handle.h>
0045 #  include <__cxx03/__coroutine/coroutine_traits.h>
0046 #  include <__cxx03/__coroutine/noop_coroutine_handle.h>
0047 #  include <__cxx03/__coroutine/trivial_awaitables.h>
0048 #endif // _LIBCPP_STD_VER >= 20
0049 
0050 #include <__cxx03/version>
0051 
0052 // standard-mandated includes
0053 
0054 // [coroutine.syn]
0055 #include <__cxx03/compare>
0056 
0057 #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
0058 #  pragma GCC system_header
0059 #endif
0060 
0061 #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
0062 #  include <__cxx03/iosfwd>
0063 #  include <__cxx03/limits>
0064 #  include <__cxx03/type_traits>
0065 #endif
0066 
0067 #endif // _LIBCPP___CXX03_COROUTINE