43 lines · plain
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-exception7//8//===----------------------------------------------------------------------===//9 10export namespace std {11#if _LIBCPP_HAS_THREADS12 // [thread.thread.class], class thread13 using std::thread;14 15 using std::swap;16 17 // [thread.jthread.class], class jthread18 using std::jthread;19 20 // [thread.thread.this], namespace this_thread21 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_thread28 29 // [thread.thread.id]30 using std::operator==;31 using std::operator<=>;32# if _LIBCPP_HAS_LOCALIZATION33 using std::operator<<;34# endif // _LIBCPP_HAS_LOCALIZATION35 36# if _LIBCPP_STD_VER >= 2337 using std::formatter;38# endif39 40 using std::hash;41#endif // _LIBCPP_HAS_THREADS42} // namespace std43