• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10export namespace std {
11#if _LIBCPP_HAS_THREADS
12  // [thread.thread.class], class thread
13  using std::thread;
14
15  using std::swap;
16
17  // [thread.jthread.class], class jthread
18  using std::jthread;
19
20  // [thread.thread.this], namespace this_thread
21  namespace this_thread {
22    using std::this_thread::get_id;
23
24    using std::this_thread::sleep_for;
25    using std::this_thread::sleep_until;
26    using std::this_thread::yield;
27  } // namespace this_thread
28
29  // [thread.thread.id]
30  using std::operator==;
31  using std::operator<=>;
32#  if _LIBCPP_HAS_LOCALIZATION
33  using std::operator<<;
34#  endif // _LIBCPP_HAS_LOCALIZATION
35
36#  if _LIBCPP_STD_VER >= 23
37  using std::formatter;
38#  endif
39
40  using std::hash;
41#endif // _LIBCPP_HAS_THREADS
42} // namespace std
43