Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/stop_token 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_STOP_TOKEN
0011 #define _LIBCPP___CXX03_STOP_TOKEN
0012 
0013 /*
0014 
0015 namespace std {
0016   // [stoptoken], class stop_token
0017   class stop_token;
0018 
0019   // [stopsource], class stop_source
0020   class stop_source;
0021 
0022   // no-shared-stop-state indicator
0023   struct nostopstate_t {
0024     explicit nostopstate_t() = default;
0025   };
0026   inline constexpr nostopstate_t nostopstate{};
0027 
0028   // [stopcallback], class template stop_callback
0029   template<class Callback>
0030     class stop_callback;
0031 
0032 */
0033 
0034 #include <__cxx03/__config>
0035 
0036 #if !defined(_LIBCPP_HAS_NO_THREADS)
0037 
0038 #  if _LIBCPP_STD_VER >= 20
0039 #    include <__cxx03/__stop_token/stop_callback.h>
0040 #    include <__cxx03/__stop_token/stop_source.h>
0041 #    include <__cxx03/__stop_token/stop_token.h>
0042 #  endif
0043 
0044 #  include <__cxx03/version>
0045 
0046 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0047 #    pragma GCC system_header
0048 #  endif
0049 
0050 #endif // !defined(_LIBCPP_HAS_NO_THREADS)
0051 
0052 #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
0053 #  include <__cxx03/iosfwd>
0054 #endif
0055 
0056 #endif // _LIBCPP___CXX03_STOP_TOKEN