Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/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_COROUTINE
0011 #define _LIBCPP_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 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0042 #  include <__cxx03/coroutine>
0043 #else
0044 #  include <__config>
0045 
0046 #  if _LIBCPP_STD_VER >= 20
0047 #    include <__coroutine/coroutine_handle.h>
0048 #    include <__coroutine/coroutine_traits.h>
0049 #    include <__coroutine/noop_coroutine_handle.h>
0050 #    include <__coroutine/trivial_awaitables.h>
0051 #  endif // _LIBCPP_STD_VER >= 20
0052 
0053 #  include <version>
0054 
0055 // standard-mandated includes
0056 
0057 // [coroutine.syn]
0058 #  include <compare>
0059 
0060 #  ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
0061 #    pragma GCC system_header
0062 #  endif
0063 
0064 #  if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
0065 #    include <cstddef>
0066 #    include <iosfwd>
0067 #    include <limits>
0068 #    include <type_traits>
0069 #  endif
0070 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0071 
0072 #endif // _LIBCPP_COROUTINE