32#ifndef _GLIBCXX_ATOMIC
33#define _GLIBCXX_ATOMIC 1
36#pragma GCC system_header
39#if __cplusplus < 201103L
43#define __glibcxx_want_atomic_is_always_lock_free
44#define __glibcxx_want_atomic_flag_test
45#define __glibcxx_want_atomic_float
46#define __glibcxx_want_atomic_min_max
47#define __glibcxx_want_atomic_ref
48#define __glibcxx_want_atomic_lock_free_type_aliases
49#define __glibcxx_want_atomic_value_initialization
50#define __glibcxx_want_atomic_wait
57namespace std _GLIBCXX_VISIBILITY(default)
59_GLIBCXX_BEGIN_NAMESPACE_VERSION
66 template<
typename _Tp>
74 using value_type = bool;
77 __atomic_base<bool> _M_base;
80 atomic() noexcept = default;
81 ~atomic() noexcept = default;
82 atomic(const atomic&) = delete;
83 atomic& operator=(const atomic&) = delete;
84 atomic& operator=(const atomic&) volatile = delete;
86 constexpr atomic(
bool __i) noexcept : _M_base(__i) { }
89 operator=(
bool __i)
noexcept
90 {
return _M_base.operator=(__i); }
93 operator=(
bool __i)
volatile noexcept
94 {
return _M_base.operator=(__i); }
96 operator bool() const noexcept
97 {
return _M_base.load(); }
99 operator bool() const volatile noexcept
100 {
return _M_base.load(); }
103 is_lock_free() const noexcept {
return _M_base.is_lock_free(); }
106 is_lock_free() const volatile noexcept {
return _M_base.is_lock_free(); }
108#ifdef __cpp_lib_atomic_is_always_lock_free
113 store(
bool __i,
memory_order __m = memory_order_seq_cst)
noexcept
114 { _M_base.store(__i, __m); }
117 store(
bool __i,
memory_order __m = memory_order_seq_cst)
volatile noexcept
118 { _M_base.store(__i, __m); }
121 load(
memory_order __m = memory_order_seq_cst)
const noexcept
122 {
return _M_base.load(__m); }
125 load(
memory_order __m = memory_order_seq_cst)
const volatile noexcept
126 {
return _M_base.load(__m); }
129 exchange(
bool __i,
memory_order __m = memory_order_seq_cst)
noexcept
130 {
return _M_base.exchange(__i, __m); }
134 memory_order __m = memory_order_seq_cst)
volatile noexcept
135 {
return _M_base.exchange(__i, __m); }
138 compare_exchange_weak(
bool& __i1,
bool __i2,
memory_order __m1,
140 {
return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); }
143 compare_exchange_weak(
bool& __i1,
bool __i2,
memory_order __m1,
145 {
return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); }
148 compare_exchange_weak(
bool& __i1,
bool __i2,
150 {
return _M_base.compare_exchange_weak(__i1, __i2, __m); }
153 compare_exchange_weak(
bool& __i1,
bool __i2,
154 memory_order __m = memory_order_seq_cst)
volatile noexcept
155 {
return _M_base.compare_exchange_weak(__i1, __i2, __m); }
158 compare_exchange_strong(
bool& __i1,
bool __i2,
memory_order __m1,
160 {
return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); }
163 compare_exchange_strong(
bool& __i1,
bool __i2,
memory_order __m1,
165 {
return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); }
168 compare_exchange_strong(
bool& __i1,
bool __i2,
170 {
return _M_base.compare_exchange_strong(__i1, __i2, __m); }
173 compare_exchange_strong(
bool& __i1,
bool __i2,
174 memory_order __m = memory_order_seq_cst)
volatile noexcept
175 {
return _M_base.compare_exchange_strong(__i1, __i2, __m); }
177#if __cpp_lib_atomic_wait
179 wait(
bool __old,
memory_order __m = memory_order_seq_cst)
const noexcept
180 { _M_base.wait(__old, __m); }
185 notify_one() noexcept
186 { _M_base.notify_one(); }
189 notify_all() noexcept
190 { _M_base.notify_all(); }
199 template<
typename _Tp>
202 using value_type = _Tp;
206 static constexpr int _S_min_alignment
207 = (
sizeof(_Tp) & (
sizeof(_Tp) - 1)) ||
sizeof(_Tp) > 16
210 static constexpr int _S_alignment
211 = _S_min_alignment >
alignof(_Tp) ? _S_min_alignment :
alignof(_Tp);
213 alignas(_S_alignment) _Tp _M_i;
215 static_assert(__is_trivially_copyable(_Tp),
216 "std::atomic requires a trivially copyable type");
218 static_assert(
sizeof(_Tp) > 0,
219 "Incomplete or zero-sized types are not supported");
224 "template argument for std::atomic must not be const or volatile");
226#if __cplusplus > 201703L
227 static_assert(is_copy_constructible_v<_Tp>);
228 static_assert(is_move_constructible_v<_Tp>);
229 static_assert(is_copy_assignable_v<_Tp>);
230 static_assert(is_move_assignable_v<_Tp>);
234#if __cpp_lib_atomic_value_initialization
237 constexpr atomic()
noexcept(is_nothrow_default_constructible_v<_Tp>)
238 requires is_default_constructible_v<_Tp>
245 ~atomic()
noexcept =
default;
246 atomic(
const atomic&) =
delete;
247 atomic& operator=(
const atomic&) =
delete;
248 atomic& operator=(
const atomic&)
volatile =
delete;
250#pragma GCC diagnostic push
251#pragma GCC diagnostic ignored "-Wc++14-extensions"
252 constexpr atomic(_Tp __i) noexcept : _M_i(__i)
254#if __has_builtin(__builtin_clear_padding)
255 if _GLIBCXX17_CONSTEXPR (__atomic_impl::__maybe_has_padding<_Tp>())
256 if (!std::__is_constant_evaluated())
260#pragma GCC diagnostic pop
262 operator _Tp()
const noexcept
265 operator _Tp()
const volatile noexcept
269 operator=(_Tp __i)
noexcept
270 { store(__i);
return __i; }
273 operator=(_Tp __i)
volatile noexcept
274 { store(__i);
return __i; }
277 is_lock_free()
const noexcept
280 return __atomic_is_lock_free(
sizeof(_M_i),
281 reinterpret_cast<void *
>(-_S_alignment));
285 is_lock_free()
const volatile noexcept
288 return __atomic_is_lock_free(
sizeof(_M_i),
289 reinterpret_cast<void *
>(-_S_alignment));
292#ifdef __cpp_lib_atomic_is_always_lock_free
293 static constexpr bool is_always_lock_free
294 = __atomic_always_lock_free(
sizeof(_M_i), 0);
298 store(_Tp __i,
memory_order __m = memory_order_seq_cst)
noexcept
301 __atomic_impl::__clear_padding(__i),
306 store(_Tp __i,
memory_order __m = memory_order_seq_cst)
volatile noexcept
309 __atomic_impl::__clear_padding(__i),
314 load(
memory_order __m = memory_order_seq_cst)
const noexcept
316 alignas(_Tp)
unsigned char __buf[
sizeof(_Tp)];
317 _Tp* __ptr =
reinterpret_cast<_Tp*
>(__buf);
323 load(
memory_order __m = memory_order_seq_cst)
const volatile noexcept
325 alignas(_Tp)
unsigned char __buf[
sizeof(_Tp)];
326 _Tp* __ptr =
reinterpret_cast<_Tp*
>(__buf);
332 exchange(_Tp __i,
memory_order __m = memory_order_seq_cst)
noexcept
334 alignas(_Tp)
unsigned char __buf[
sizeof(_Tp)];
335 _Tp* __ptr =
reinterpret_cast<_Tp*
>(__buf);
337 __atomic_impl::__clear_padding(__i),
344 memory_order __m = memory_order_seq_cst)
volatile noexcept
346 alignas(_Tp)
unsigned char __buf[
sizeof(_Tp)];
347 _Tp* __ptr =
reinterpret_cast<_Tp*
>(__buf);
349 __atomic_impl::__clear_padding(__i),
355 compare_exchange_weak(_Tp& __e, _Tp __i,
memory_order __s,
358 return __atomic_impl::__compare_exchange(_M_i, __e, __i,
true,
363 compare_exchange_weak(_Tp& __e, _Tp __i,
memory_order __s,
366 return __atomic_impl::__compare_exchange(_M_i, __e, __i,
true,
371 compare_exchange_weak(_Tp& __e, _Tp __i,
373 {
return compare_exchange_weak(__e, __i, __m,
374 __cmpexch_failure_order(__m)); }
377 compare_exchange_weak(_Tp& __e, _Tp __i,
378 memory_order __m = memory_order_seq_cst)
volatile noexcept
379 {
return compare_exchange_weak(__e, __i, __m,
380 __cmpexch_failure_order(__m)); }
383 compare_exchange_strong(_Tp& __e, _Tp __i,
memory_order __s,
386 return __atomic_impl::__compare_exchange(_M_i, __e, __i,
false,
391 compare_exchange_strong(_Tp& __e, _Tp __i,
memory_order __s,
394 return __atomic_impl::__compare_exchange(_M_i, __e, __i,
false,
399 compare_exchange_strong(_Tp& __e, _Tp __i,
401 {
return compare_exchange_strong(__e, __i, __m,
402 __cmpexch_failure_order(__m)); }
405 compare_exchange_strong(_Tp& __e, _Tp __i,
406 memory_order __m = memory_order_seq_cst)
volatile noexcept
407 {
return compare_exchange_strong(__e, __i, __m,
408 __cmpexch_failure_order(__m)); }
410#if __cpp_lib_atomic_wait
412 wait(_Tp __old,
memory_order __m = memory_order_seq_cst)
const noexcept
415 [__m,
this] {
return this->load(__m); });
421 notify_one()
noexcept
425 notify_all()
noexcept
431 template<
typename _Tp>
434 using value_type = _Tp*;
435 using difference_type = ptrdiff_t;
437 typedef _Tp* __pointer_type;
438 typedef __atomic_base<_Tp*> __base_type;
441 atomic()
noexcept =
default;
442 ~atomic()
noexcept =
default;
443 atomic(
const atomic&) =
delete;
444 atomic& operator=(
const atomic&) =
delete;
445 atomic& operator=(
const atomic&)
volatile =
delete;
447 constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { }
449 operator __pointer_type()
const noexcept
450 {
return __pointer_type(_M_b); }
452 operator __pointer_type()
const volatile noexcept
453 {
return __pointer_type(_M_b); }
456 operator=(__pointer_type __p)
noexcept
457 {
return _M_b.operator=(__p); }
460 operator=(__pointer_type __p)
volatile noexcept
461 {
return _M_b.operator=(__p); }
464 operator++(
int)
noexcept
466#if __cplusplus >= 201703L
467 static_assert( is_object_v<_Tp>,
"pointer to object type" );
473 operator++(
int)
volatile noexcept
475#if __cplusplus >= 201703L
476 static_assert( is_object_v<_Tp>,
"pointer to object type" );
482 operator--(
int)
noexcept
484#if __cplusplus >= 201703L
485 static_assert( is_object_v<_Tp>,
"pointer to object type" );
491 operator--(
int)
volatile noexcept
493#if __cplusplus >= 201703L
494 static_assert( is_object_v<_Tp>,
"pointer to object type" );
500 operator++()
noexcept
502#if __cplusplus >= 201703L
503 static_assert( is_object_v<_Tp>,
"pointer to object type" );
509 operator++()
volatile noexcept
511#if __cplusplus >= 201703L
512 static_assert( is_object_v<_Tp>,
"pointer to object type" );
518 operator--()
noexcept
520#if __cplusplus >= 201703L
521 static_assert( is_object_v<_Tp>,
"pointer to object type" );
527 operator--()
volatile noexcept
529#if __cplusplus >= 201703L
530 static_assert( is_object_v<_Tp>,
"pointer to object type" );
536 operator+=(ptrdiff_t __d)
noexcept
538#if __cplusplus >= 201703L
539 static_assert( is_object_v<_Tp>,
"pointer to object type" );
541 return _M_b.operator+=(__d);
545 operator+=(ptrdiff_t __d)
volatile noexcept
547#if __cplusplus >= 201703L
548 static_assert( is_object_v<_Tp>,
"pointer to object type" );
550 return _M_b.operator+=(__d);
554 operator-=(ptrdiff_t __d)
noexcept
556#if __cplusplus >= 201703L
557 static_assert( is_object_v<_Tp>,
"pointer to object type" );
559 return _M_b.operator-=(__d);
563 operator-=(ptrdiff_t __d)
volatile noexcept
565#if __cplusplus >= 201703L
566 static_assert( is_object_v<_Tp>,
"pointer to object type" );
568 return _M_b.operator-=(__d);
572 is_lock_free()
const noexcept
573 {
return _M_b.is_lock_free(); }
576 is_lock_free()
const volatile noexcept
577 {
return _M_b.is_lock_free(); }
579#ifdef __cpp_lib_atomic_is_always_lock_free
580 static constexpr bool is_always_lock_free
581 = ATOMIC_POINTER_LOCK_FREE == 2;
585 store(__pointer_type __p,
587 {
return _M_b.store(__p, __m); }
590 store(__pointer_type __p,
591 memory_order __m = memory_order_seq_cst)
volatile noexcept
592 {
return _M_b.store(__p, __m); }
595 load(
memory_order __m = memory_order_seq_cst)
const noexcept
596 {
return _M_b.load(__m); }
599 load(
memory_order __m = memory_order_seq_cst)
const volatile noexcept
600 {
return _M_b.load(__m); }
603 exchange(__pointer_type __p,
605 {
return _M_b.exchange(__p, __m); }
608 exchange(__pointer_type __p,
609 memory_order __m = memory_order_seq_cst)
volatile noexcept
610 {
return _M_b.exchange(__p, __m); }
613 compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2,
615 {
return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); }
618 compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2,
621 {
return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); }
624 compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2,
627 return compare_exchange_weak(__p1, __p2, __m,
628 __cmpexch_failure_order(__m));
632 compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2,
633 memory_order __m = memory_order_seq_cst)
volatile noexcept
635 return compare_exchange_weak(__p1, __p2, __m,
636 __cmpexch_failure_order(__m));
640 compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2,
642 {
return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); }
645 compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2,
648 {
return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); }
651 compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2,
654 return _M_b.compare_exchange_strong(__p1, __p2, __m,
655 __cmpexch_failure_order(__m));
659 compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2,
660 memory_order __m = memory_order_seq_cst)
volatile noexcept
662 return _M_b.compare_exchange_strong(__p1, __p2, __m,
663 __cmpexch_failure_order(__m));
666#if __cpp_lib_atomic_wait
668 wait(__pointer_type __old,
memory_order __m = memory_order_seq_cst)
const noexcept
669 { _M_b.wait(__old, __m); }
674 notify_one()
noexcept
675 { _M_b.notify_one(); }
678 notify_all()
noexcept
679 { _M_b.notify_all(); }
683 fetch_add(ptrdiff_t __d,
686#if __cplusplus >= 201703L
687 static_assert( is_object_v<_Tp>,
"pointer to object type" );
689 return _M_b.fetch_add(__d, __m);
693 fetch_add(ptrdiff_t __d,
694 memory_order __m = memory_order_seq_cst)
volatile noexcept
696#if __cplusplus >= 201703L
697 static_assert( is_object_v<_Tp>,
"pointer to object type" );
699 return _M_b.fetch_add(__d, __m);
703 fetch_sub(ptrdiff_t __d,
706#if __cplusplus >= 201703L
707 static_assert( is_object_v<_Tp>,
"pointer to object type" );
709 return _M_b.fetch_sub(__d, __m);
713 fetch_sub(ptrdiff_t __d,
714 memory_order __m = memory_order_seq_cst)
volatile noexcept
716#if __cplusplus >= 201703L
717 static_assert( is_object_v<_Tp>,
"pointer to object type" );
719 return _M_b.fetch_sub(__d, __m);
726 struct atomic<char> : __atomic_base<char>
728 typedef char __integral_type;
729 typedef __atomic_base<char> __base_type;
731 atomic() noexcept = default;
732 ~
atomic() noexcept = default;
737 constexpr
atomic(__integral_type __i) noexcept : __base_type(__i) { }
739 using __base_type::operator __integral_type;
740 using __base_type::operator=;
742#ifdef __cpp_lib_atomic_is_always_lock_free
743 static constexpr bool is_always_lock_free = ATOMIC_CHAR_LOCK_FREE == 2;
749 struct atomic<signed char> : __atomic_base<signed char>
751 typedef signed char __integral_type;
752 typedef __atomic_base<signed char> __base_type;
754 atomic() noexcept= default;
755 ~atomic() noexcept = default;
756 atomic(const atomic&) = delete;
757 atomic& operator=(const atomic&) = delete;
758 atomic& operator=(const atomic&) volatile = delete;
760 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
762 using __base_type::operator __integral_type;
763 using __base_type::operator=;
765#ifdef __cpp_lib_atomic_is_always_lock_free
766 static constexpr bool is_always_lock_free = ATOMIC_CHAR_LOCK_FREE == 2;
772 struct atomic<unsigned char> : __atomic_base<unsigned char>
774 typedef unsigned char __integral_type;
775 typedef __atomic_base<unsigned char> __base_type;
777 atomic() noexcept= default;
778 ~atomic() noexcept = default;
779 atomic(const atomic&) = delete;
780 atomic& operator=(const atomic&) = delete;
781 atomic& operator=(const atomic&) volatile = delete;
783 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
785 using __base_type::operator __integral_type;
786 using __base_type::operator=;
788#ifdef __cpp_lib_atomic_is_always_lock_free
789 static constexpr bool is_always_lock_free = ATOMIC_CHAR_LOCK_FREE == 2;
795 struct atomic<short> : __atomic_base<short>
797 typedef short __integral_type;
798 typedef __atomic_base<short> __base_type;
800 atomic() noexcept = default;
801 ~atomic() noexcept = default;
802 atomic(const atomic&) = delete;
803 atomic& operator=(const atomic&) = delete;
804 atomic& operator=(const atomic&) volatile = delete;
806 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
808 using __base_type::operator __integral_type;
809 using __base_type::operator=;
811#ifdef __cpp_lib_atomic_is_always_lock_free
812 static constexpr bool is_always_lock_free = ATOMIC_SHORT_LOCK_FREE == 2;
818 struct atomic<unsigned short> : __atomic_base<unsigned short>
820 typedef unsigned short __integral_type;
821 typedef __atomic_base<unsigned short> __base_type;
823 atomic() noexcept = default;
824 ~atomic() noexcept = default;
825 atomic(const atomic&) = delete;
826 atomic& operator=(const atomic&) = delete;
827 atomic& operator=(const atomic&) volatile = delete;
829 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
831 using __base_type::operator __integral_type;
832 using __base_type::operator=;
834#ifdef __cpp_lib_atomic_is_always_lock_free
835 static constexpr bool is_always_lock_free = ATOMIC_SHORT_LOCK_FREE == 2;
841 struct atomic<int> : __atomic_base<int>
843 typedef int __integral_type;
844 typedef __atomic_base<int> __base_type;
846 atomic() noexcept = default;
847 ~atomic() noexcept = default;
848 atomic(const atomic&) = delete;
849 atomic& operator=(const atomic&) = delete;
850 atomic& operator=(const atomic&) volatile = delete;
852 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
854 using __base_type::operator __integral_type;
855 using __base_type::operator=;
857#ifdef __cpp_lib_atomic_is_always_lock_free
858 static constexpr bool is_always_lock_free = ATOMIC_INT_LOCK_FREE == 2;
864 struct atomic<unsigned int> : __atomic_base<unsigned int>
866 typedef unsigned int __integral_type;
867 typedef __atomic_base<unsigned int> __base_type;
869 atomic() noexcept = default;
870 ~atomic() noexcept = default;
871 atomic(const atomic&) = delete;
872 atomic& operator=(const atomic&) = delete;
873 atomic& operator=(const atomic&) volatile = delete;
875 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
877 using __base_type::operator __integral_type;
878 using __base_type::operator=;
880#ifdef __cpp_lib_atomic_is_always_lock_free
881 static constexpr bool is_always_lock_free = ATOMIC_INT_LOCK_FREE == 2;
887 struct atomic<long> : __atomic_base<long>
889 typedef long __integral_type;
890 typedef __atomic_base<long> __base_type;
892 atomic() noexcept = default;
893 ~atomic() noexcept = default;
894 atomic(const atomic&) = delete;
895 atomic& operator=(const atomic&) = delete;
896 atomic& operator=(const atomic&) volatile = delete;
898 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
900 using __base_type::operator __integral_type;
901 using __base_type::operator=;
903#ifdef __cpp_lib_atomic_is_always_lock_free
904 static constexpr bool is_always_lock_free = ATOMIC_LONG_LOCK_FREE == 2;
910 struct atomic<unsigned long> : __atomic_base<unsigned long>
912 typedef unsigned long __integral_type;
913 typedef __atomic_base<unsigned long> __base_type;
915 atomic() noexcept = default;
916 ~atomic() noexcept = default;
917 atomic(const atomic&) = delete;
918 atomic& operator=(const atomic&) = delete;
919 atomic& operator=(const atomic&) volatile = delete;
921 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
923 using __base_type::operator __integral_type;
924 using __base_type::operator=;
926#ifdef __cpp_lib_atomic_is_always_lock_free
927 static constexpr bool is_always_lock_free = ATOMIC_LONG_LOCK_FREE == 2;
933 struct atomic<long long> : __atomic_base<long long>
935 typedef long long __integral_type;
936 typedef __atomic_base<long long> __base_type;
938 atomic() noexcept = default;
939 ~atomic() noexcept = default;
940 atomic(const atomic&) = delete;
941 atomic& operator=(const atomic&) = delete;
942 atomic& operator=(const atomic&) volatile = delete;
944 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
946 using __base_type::operator __integral_type;
947 using __base_type::operator=;
949#ifdef __cpp_lib_atomic_is_always_lock_free
950 static constexpr bool is_always_lock_free = ATOMIC_LLONG_LOCK_FREE == 2;
956 struct atomic<unsigned long long> : __atomic_base<unsigned long long>
958 typedef unsigned long long __integral_type;
959 typedef __atomic_base<unsigned long long> __base_type;
961 atomic() noexcept = default;
962 ~atomic() noexcept = default;
963 atomic(const atomic&) = delete;
964 atomic& operator=(const atomic&) = delete;
965 atomic& operator=(const atomic&) volatile = delete;
967 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
969 using __base_type::operator __integral_type;
970 using __base_type::operator=;
972#ifdef __cpp_lib_atomic_is_always_lock_free
973 static constexpr bool is_always_lock_free = ATOMIC_LLONG_LOCK_FREE == 2;
979 struct atomic<wchar_t> : __atomic_base<wchar_t>
981 typedef wchar_t __integral_type;
982 typedef __atomic_base<wchar_t> __base_type;
984 atomic() noexcept = default;
985 ~atomic() noexcept = default;
986 atomic(const atomic&) = delete;
987 atomic& operator=(const atomic&) = delete;
988 atomic& operator=(const atomic&) volatile = delete;
990 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
992 using __base_type::operator __integral_type;
993 using __base_type::operator=;
995#ifdef __cpp_lib_atomic_is_always_lock_free
996 static constexpr bool is_always_lock_free = ATOMIC_WCHAR_T_LOCK_FREE == 2;
1000#ifdef _GLIBCXX_USE_CHAR8_T
1003 struct atomic<char8_t> : __atomic_base<char8_t>
1005 typedef char8_t __integral_type;
1006 typedef __atomic_base<char8_t> __base_type;
1008 atomic() noexcept = default;
1009 ~atomic() noexcept = default;
1010 atomic(const atomic&) = delete;
1011 atomic& operator=(const atomic&) = delete;
1012 atomic& operator=(const atomic&) volatile = delete;
1014 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
1016 using __base_type::operator __integral_type;
1017 using __base_type::operator=;
1019#ifdef __cpp_lib_atomic_is_always_lock_free
1020 static constexpr bool is_always_lock_free
1021 = ATOMIC_CHAR8_T_LOCK_FREE == 2;
1028 struct atomic<char16_t> : __atomic_base<char16_t>
1030 typedef char16_t __integral_type;
1031 typedef __atomic_base<char16_t> __base_type;
1033 atomic() noexcept = default;
1034 ~atomic() noexcept = default;
1035 atomic(const atomic&) = delete;
1036 atomic& operator=(const atomic&) = delete;
1037 atomic& operator=(const atomic&) volatile = delete;
1039 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
1041 using __base_type::operator __integral_type;
1042 using __base_type::operator=;
1044#ifdef __cpp_lib_atomic_is_always_lock_free
1045 static constexpr bool is_always_lock_free
1046 = ATOMIC_CHAR16_T_LOCK_FREE == 2;
1052 struct atomic<char32_t> : __atomic_base<char32_t>
1054 typedef char32_t __integral_type;
1055 typedef __atomic_base<char32_t> __base_type;
1057 atomic() noexcept = default;
1058 ~atomic() noexcept = default;
1059 atomic(const atomic&) = delete;
1060 atomic& operator=(const atomic&) = delete;
1061 atomic& operator=(const atomic&) volatile = delete;
1063 constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { }
1065 using __base_type::operator __integral_type;
1066 using __base_type::operator=;
1068#ifdef __cpp_lib_atomic_is_always_lock_free
1069 static constexpr bool is_always_lock_free
1070 = ATOMIC_CHAR32_T_LOCK_FREE == 2;
1114#ifdef _GLIBCXX_USE_CHAR8_T
1125#ifdef _GLIBCXX_USE_C99_STDINT
1224 atomic_flag_test_and_set_explicit(
atomic_flag* __a,
1226 {
return __a->test_and_set(__m); }
1229 atomic_flag_test_and_set_explicit(
volatile atomic_flag* __a,
1231 {
return __a->test_and_set(__m); }
1233#if __cpp_lib_atomic_flag_test
1236 {
return __a->test(); }
1239 atomic_flag_test(
const volatile atomic_flag* __a)
noexcept
1240 {
return __a->test(); }
1245 {
return __a->test(__m); }
1248 atomic_flag_test_explicit(
const volatile atomic_flag* __a,
1250 {
return __a->test(__m); }
1255 { __a->clear(__m); }
1258 atomic_flag_clear_explicit(
volatile atomic_flag* __a,
1260 { __a->clear(__m); }
1263 atomic_flag_test_and_set(
atomic_flag* __a)
noexcept
1264 {
return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); }
1267 atomic_flag_test_and_set(
volatile atomic_flag* __a)
noexcept
1268 {
return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); }
1272 { atomic_flag_clear_explicit(__a, memory_order_seq_cst); }
1275 atomic_flag_clear(
volatile atomic_flag* __a)
noexcept
1276 { atomic_flag_clear_explicit(__a, memory_order_seq_cst); }
1278#if __cpp_lib_atomic_wait
1280 atomic_flag_wait(
atomic_flag* __a,
bool __old)
noexcept
1281 { __a->wait(__old); }
1284 atomic_flag_wait_explicit(
atomic_flag* __a,
bool __old,
1286 { __a->wait(__old, __m); }
1290 { __a->notify_one(); }
1294 { __a->notify_all(); }
1300 template<
typename _Tp>
1301 using __atomic_val_t = __type_identity_t<_Tp>;
1302 template<
typename _Tp>
1308 template<
typename _ITp>
1311 {
return __a->is_lock_free(); }
1313 template<
typename _ITp>
1315 atomic_is_lock_free(
const volatile atomic<_ITp>* __a)
noexcept
1316 {
return __a->is_lock_free(); }
1318 template<
typename _ITp>
1320 atomic_init(
atomic<_ITp>* __a, __atomic_val_t<_ITp> __i)
noexcept
1321 { __a->store(__i, memory_order_relaxed); }
1323 template<
typename _ITp>
1325 atomic_init(
volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i)
noexcept
1326 { __a->store(__i, memory_order_relaxed); }
1328 template<
typename _ITp>
1330 atomic_store_explicit(
atomic<_ITp>* __a, __atomic_val_t<_ITp> __i,
1332 { __a->store(__i, __m); }
1334 template<
typename _ITp>
1336 atomic_store_explicit(
volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i,
1338 { __a->store(__i, __m); }
1340 template<
typename _ITp>
1343 {
return __a->load(__m); }
1345 template<
typename _ITp>
1349 {
return __a->load(__m); }
1351 template<
typename _ITp>
1353 atomic_exchange_explicit(
atomic<_ITp>* __a, __atomic_val_t<_ITp> __i,
1355 {
return __a->exchange(__i, __m); }
1357 template<
typename _ITp>
1360 __atomic_val_t<_ITp> __i,
1362 {
return __a->exchange(__i, __m); }
1364 template<
typename _ITp>
1366 atomic_compare_exchange_weak_explicit(
atomic<_ITp>* __a,
1367 __atomic_val_t<_ITp>* __i1,
1368 __atomic_val_t<_ITp> __i2,
1371 {
return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); }
1373 template<
typename _ITp>
1375 atomic_compare_exchange_weak_explicit(
volatile atomic<_ITp>* __a,
1376 __atomic_val_t<_ITp>* __i1,
1377 __atomic_val_t<_ITp> __i2,
1380 {
return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); }
1382 template<
typename _ITp>
1384 atomic_compare_exchange_strong_explicit(
atomic<_ITp>* __a,
1385 __atomic_val_t<_ITp>* __i1,
1386 __atomic_val_t<_ITp> __i2,
1389 {
return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); }
1391 template<
typename _ITp>
1393 atomic_compare_exchange_strong_explicit(
volatile atomic<_ITp>* __a,
1394 __atomic_val_t<_ITp>* __i1,
1395 __atomic_val_t<_ITp> __i2,
1398 {
return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); }
1401 template<
typename _ITp>
1403 atomic_store(
atomic<_ITp>* __a, __atomic_val_t<_ITp> __i)
noexcept
1404 { atomic_store_explicit(__a, __i, memory_order_seq_cst); }
1406 template<
typename _ITp>
1408 atomic_store(
volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i)
noexcept
1409 { atomic_store_explicit(__a, __i, memory_order_seq_cst); }
1411 template<
typename _ITp>
1414 {
return atomic_load_explicit(__a, memory_order_seq_cst); }
1416 template<
typename _ITp>
1419 {
return atomic_load_explicit(__a, memory_order_seq_cst); }
1421 template<
typename _ITp>
1423 atomic_exchange(
atomic<_ITp>* __a, __atomic_val_t<_ITp> __i)
noexcept
1424 {
return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); }
1426 template<
typename _ITp>
1429 __atomic_val_t<_ITp> __i)
noexcept
1430 {
return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); }
1432 template<
typename _ITp>
1435 __atomic_val_t<_ITp>* __i1,
1436 __atomic_val_t<_ITp> __i2)
noexcept
1438 return atomic_compare_exchange_weak_explicit(__a, __i1, __i2,
1439 memory_order_seq_cst,
1440 memory_order_seq_cst);
1443 template<
typename _ITp>
1445 atomic_compare_exchange_weak(
volatile atomic<_ITp>* __a,
1446 __atomic_val_t<_ITp>* __i1,
1447 __atomic_val_t<_ITp> __i2)
noexcept
1449 return atomic_compare_exchange_weak_explicit(__a, __i1, __i2,
1450 memory_order_seq_cst,
1451 memory_order_seq_cst);
1454 template<
typename _ITp>
1457 __atomic_val_t<_ITp>* __i1,
1458 __atomic_val_t<_ITp> __i2)
noexcept
1460 return atomic_compare_exchange_strong_explicit(__a, __i1, __i2,
1461 memory_order_seq_cst,
1462 memory_order_seq_cst);
1465 template<
typename _ITp>
1467 atomic_compare_exchange_strong(
volatile atomic<_ITp>* __a,
1468 __atomic_val_t<_ITp>* __i1,
1469 __atomic_val_t<_ITp> __i2)
noexcept
1471 return atomic_compare_exchange_strong_explicit(__a, __i1, __i2,
1472 memory_order_seq_cst,
1473 memory_order_seq_cst);
1477#if __cpp_lib_atomic_wait
1478 template<
typename _Tp>
1481 typename std::atomic<_Tp>::value_type __old)
noexcept
1482 { __a->wait(__old); }
1484 template<
typename _Tp>
1487 typename std::atomic<_Tp>::value_type __old,
1489 { __a->wait(__old, __m); }
1491 template<
typename _Tp>
1494 { __a->notify_one(); }
1496 template<
typename _Tp>
1499 { __a->notify_all(); }
1506 template<
typename _ITp>
1509 __atomic_diff_t<_ITp> __i,
1511 {
return __a->fetch_add(__i, __m); }
1513 template<
typename _ITp>
1516 __atomic_diff_t<_ITp> __i,
1518 {
return __a->fetch_add(__i, __m); }
1520 template<
typename _ITp>
1523 __atomic_diff_t<_ITp> __i,
1525 {
return __a->fetch_sub(__i, __m); }
1527 template<
typename _ITp>
1530 __atomic_diff_t<_ITp> __i,
1532 {
return __a->fetch_sub(__i, __m); }
1534 template<
typename _ITp>
1536 atomic_fetch_and_explicit(__atomic_base<_ITp>* __a,
1537 __atomic_val_t<_ITp> __i,
1539 {
return __a->fetch_and(__i, __m); }
1541 template<
typename _ITp>
1543 atomic_fetch_and_explicit(
volatile __atomic_base<_ITp>* __a,
1544 __atomic_val_t<_ITp> __i,
1546 {
return __a->fetch_and(__i, __m); }
1548 template<
typename _ITp>
1550 atomic_fetch_or_explicit(__atomic_base<_ITp>* __a,
1551 __atomic_val_t<_ITp> __i,
1553 {
return __a->fetch_or(__i, __m); }
1555 template<
typename _ITp>
1557 atomic_fetch_or_explicit(
volatile __atomic_base<_ITp>* __a,
1558 __atomic_val_t<_ITp> __i,
1560 {
return __a->fetch_or(__i, __m); }
1562 template<
typename _ITp>
1564 atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a,
1565 __atomic_val_t<_ITp> __i,
1567 {
return __a->fetch_xor(__i, __m); }
1569 template<
typename _ITp>
1571 atomic_fetch_xor_explicit(
volatile __atomic_base<_ITp>* __a,
1572 __atomic_val_t<_ITp> __i,
1574 {
return __a->fetch_xor(__i, __m); }
1576#ifdef __cpp_lib_atomic_min_max
1577 template<
typename _ITp>
1579 atomic_fetch_min_explicit(__atomic_base<_ITp>* __a,
1580 __atomic_val_t<_ITp> __i,
1582 {
return __a->fetch_min(__i, __m); }
1584 template<
typename _ITp>
1586 atomic_fetch_min_explicit(
volatile __atomic_base<_ITp>* __a,
1587 __atomic_val_t<_ITp> __i,
1589 {
return __a->fetch_min(__i, __m); }
1591 template<
typename _ITp>
1593 atomic_fetch_max_explicit(__atomic_base<_ITp>* __a,
1594 __atomic_val_t<_ITp> __i,
1596 {
return __a->fetch_max(__i, __m); }
1598 template<
typename _ITp>
1600 atomic_fetch_max_explicit(
volatile __atomic_base<_ITp>* __a,
1601 __atomic_val_t<_ITp> __i,
1603 {
return __a->fetch_max(__i, __m); }
1606 template<
typename _ITp>
1609 __atomic_diff_t<_ITp> __i)
noexcept
1610 {
return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); }
1612 template<
typename _ITp>
1615 __atomic_diff_t<_ITp> __i)
noexcept
1616 {
return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); }
1618 template<
typename _ITp>
1621 __atomic_diff_t<_ITp> __i)
noexcept
1622 {
return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); }
1624 template<
typename _ITp>
1627 __atomic_diff_t<_ITp> __i)
noexcept
1628 {
return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); }
1630 template<
typename _ITp>
1632 atomic_fetch_and(__atomic_base<_ITp>* __a,
1633 __atomic_val_t<_ITp> __i)
noexcept
1634 {
return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); }
1636 template<
typename _ITp>
1638 atomic_fetch_and(
volatile __atomic_base<_ITp>* __a,
1639 __atomic_val_t<_ITp> __i)
noexcept
1640 {
return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); }
1642 template<
typename _ITp>
1644 atomic_fetch_or(__atomic_base<_ITp>* __a,
1645 __atomic_val_t<_ITp> __i)
noexcept
1646 {
return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); }
1648 template<
typename _ITp>
1650 atomic_fetch_or(
volatile __atomic_base<_ITp>* __a,
1651 __atomic_val_t<_ITp> __i)
noexcept
1652 {
return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); }
1654 template<
typename _ITp>
1656 atomic_fetch_xor(__atomic_base<_ITp>* __a,
1657 __atomic_val_t<_ITp> __i)
noexcept
1658 {
return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); }
1660 template<
typename _ITp>
1662 atomic_fetch_xor(
volatile __atomic_base<_ITp>* __a,
1663 __atomic_val_t<_ITp> __i)
noexcept
1664 {
return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); }
1666#ifdef __cpp_lib_atomic_min_max
1667 template<
typename _ITp>
1669 atomic_fetch_min(__atomic_base<_ITp>* __a,
1670 __atomic_val_t<_ITp> __i)
noexcept
1671 {
return atomic_fetch_min_explicit(__a, __i, memory_order_seq_cst); }
1673 template<
typename _ITp>
1675 atomic_fetch_min(
volatile __atomic_base<_ITp>* __a,
1676 __atomic_val_t<_ITp> __i)
noexcept
1677 {
return atomic_fetch_min_explicit(__a, __i, memory_order_seq_cst); }
1679 template<
typename _ITp>
1681 atomic_fetch_max(__atomic_base<_ITp>* __a,
1682 __atomic_val_t<_ITp> __i)
noexcept
1683 {
return atomic_fetch_max_explicit(__a, __i, memory_order_seq_cst); }
1685 template<
typename _ITp>
1687 atomic_fetch_max(
volatile __atomic_base<_ITp>* __a,
1688 __atomic_val_t<_ITp> __i)
noexcept
1689 {
return atomic_fetch_max_explicit(__a, __i, memory_order_seq_cst); }
1692#ifdef __cpp_lib_atomic_float
1694 struct atomic<float> : __atomic_float<float>
1696 atomic() noexcept = default;
1699 atomic(
float __fp) noexcept : __atomic_float<
float>(__fp)
1702 atomic& operator=(
const atomic&)
volatile =
delete;
1703 atomic& operator=(
const atomic&) =
delete;
1705 using __atomic_float<
float>::operator=;
1709 struct atomic<double> : __atomic_float<double>
1711 atomic() noexcept = default;
1714 atomic(
double __fp) noexcept : __atomic_float<
double>(__fp)
1717 atomic& operator=(
const atomic&)
volatile =
delete;
1718 atomic& operator=(
const atomic&) =
delete;
1720 using __atomic_float<
double>::operator=;
1724 struct atomic<long double> : __atomic_float<long double>
1726 atomic() noexcept = default;
1729 atomic(
long double __fp) noexcept : __atomic_float<
long double>(__fp)
1732 atomic& operator=(
const atomic&)
volatile =
delete;
1733 atomic& operator=(
const atomic&) =
delete;
1735 using __atomic_float<
long double>::operator=;
1738#ifdef __STDCPP_FLOAT16_T__
1740 struct atomic<_Float16> : __atomic_float<_Float16>
1742 atomic() noexcept = default;
1745 atomic(_Float16 __fp) noexcept : __atomic_float<_Float16>(__fp)
1748 atomic& operator=(
const atomic&)
volatile =
delete;
1749 atomic& operator=(
const atomic&) =
delete;
1751 using __atomic_float<_Float16>::operator=;
1755#ifdef __STDCPP_FLOAT32_T__
1757 struct atomic<_Float32> : __atomic_float<_Float32>
1759 atomic() noexcept = default;
1762 atomic(_Float32 __fp) noexcept : __atomic_float<_Float32>(__fp)
1765 atomic& operator=(
const atomic&)
volatile =
delete;
1766 atomic& operator=(
const atomic&) =
delete;
1768 using __atomic_float<_Float32>::operator=;
1772#ifdef __STDCPP_FLOAT64_T__
1774 struct atomic<_Float64> : __atomic_float<_Float64>
1776 atomic() noexcept = default;
1779 atomic(_Float64 __fp) noexcept : __atomic_float<_Float64>(__fp)
1782 atomic& operator=(
const atomic&)
volatile =
delete;
1783 atomic& operator=(
const atomic&) =
delete;
1785 using __atomic_float<_Float64>::operator=;
1789#ifdef __STDCPP_FLOAT128_T__
1791 struct atomic<_Float128> : __atomic_float<_Float128>
1793 atomic() noexcept = default;
1796 atomic(_Float128 __fp) noexcept : __atomic_float<_Float128>(__fp)
1799 atomic& operator=(
const atomic&)
volatile =
delete;
1800 atomic& operator=(
const atomic&) =
delete;
1802 using __atomic_float<_Float128>::operator=;
1806#ifdef __STDCPP_BFLOAT16_T__
1808 struct atomic<__gnu_cxx::__bfloat16_t> : __atomic_float<__gnu_cxx::__bfloat16_t>
1810 atomic() noexcept = default;
1813 atomic(__gnu_cxx::__bfloat16_t __fp) noexcept : __atomic_float<__gnu_cxx::__bfloat16_t>(__fp)
1816 atomic& operator=(
const atomic&)
volatile =
delete;
1817 atomic& operator=(
const atomic&) =
delete;
1819 using __atomic_float<__gnu_cxx::__bfloat16_t>::operator=;
1824#ifdef __cpp_lib_atomic_ref
1826 template<
typename _Tp>
1827 struct atomic_ref : __atomic_ref<_Tp>
1830 atomic_ref(_Tp& __t) noexcept
1833 __glibcxx_assert(((__UINTPTR_TYPE__)this->_M_ptr % this->required_alignment) == 0);
1839 atomic_ref(_Tp&&) =
delete;
1841 template<
typename _Up>
1842 requires is_convertible_v<_Up(*)[1], _Tp(*)[1]>
1843 atomic_ref(atomic_ref<_Up> __other) noexcept
1844 : __atomic_ref<_Tp>(__other._M_ptr)
1847 atomic_ref& operator=(
const atomic_ref&) =
delete;
1849 atomic_ref(
const atomic_ref&) =
default;
1851 using __atomic_ref<_Tp>::operator=;
1854 friend struct atomic_ref;
1858#ifdef __cpp_lib_atomic_lock_free_type_aliases
1859# ifdef _GLIBCXX_HAVE_PLATFORM_WAIT
1860 using atomic_signed_lock_free
1862 using atomic_unsigned_lock_free
1864# elif ATOMIC_INT_LOCK_FREE == 2
1867# elif ATOMIC_LONG_LOCK_FREE == 2
1870# elif ATOMIC_CHAR_LOCK_FREE == 2
1874# error "libstdc++ bug: no lock-free atomics but they were emitted in <version>"
1880_GLIBCXX_END_NAMESPACE_VERSION
constexpr _Tp * addressof(_Tp &__r) noexcept
Returns the actual address of the object or function referenced by r, even in the presence of an over...
constexpr _Tp * __addressof(_Tp &__r) noexcept
Same as C++11 std::addressof.
atomic< unsigned long > atomic_ulong
atomic_ulong
atomic< intmax_t > atomic_intmax_t
atomic_intmax_t
atomic< uintptr_t > atomic_uintptr_t
atomic_uintptr_t
atomic< signed char > atomic_schar
atomic_schar
atomic< int_least8_t > atomic_int_least8_t
atomic_int_least8_t
atomic< unsigned long long > atomic_ullong
atomic_ullong
atomic< uint_fast8_t > atomic_uint_fast8_t
atomic_uint_fast8_t
atomic< intptr_t > atomic_intptr_t
atomic_intptr_t
atomic< int16_t > atomic_int16_t
atomic_int16_t
atomic< size_t > atomic_size_t
atomic_size_t
atomic< long > atomic_long
atomic_long
atomic< uint_least8_t > atomic_uint_least8_t
atomic_uint_least8_t
atomic< short > atomic_short
atomic_short
atomic< uint_least16_t > atomic_uint_least16_t
atomic_uint_least16_t
atomic< uint16_t > atomic_uint16_t
atomic_uint16_t
atomic< uint64_t > atomic_uint64_t
atomic_uint64_t
atomic< int_least32_t > atomic_int_least32_t
atomic_int_least32_t
atomic< uint8_t > atomic_uint8_t
atomic_uint8_t
#define ATOMIC_BOOL_LOCK_FREE
atomic< wchar_t > atomic_wchar_t
atomic_wchar_t
atomic< unsigned int > atomic_uint
atomic_uint
atomic< uint_least32_t > atomic_uint_least32_t
atomic_uint_least32_t
atomic< uint_fast64_t > atomic_uint_fast64_t
atomic_uint_fast64_t
atomic< int_fast32_t > atomic_int_fast32_t
atomic_int_fast32_t
atomic< char > atomic_char
atomic_char
atomic< int > atomic_int
atomic_int
atomic< uint_least64_t > atomic_uint_least64_t
atomic_uint_least64_t
atomic< int64_t > atomic_int64_t
atomic_int64_t
atomic< uintmax_t > atomic_uintmax_t
atomic_uintmax_t
atomic< int_fast16_t > atomic_int_fast16_t
atomic_int_fast16_t
atomic< int32_t > atomic_int32_t
atomic_int32_t
atomic< uint_fast16_t > atomic_uint_fast16_t
atomic_uint_fast16_t
atomic< int8_t > atomic_int8_t
atomic_int8_t
atomic< long long > atomic_llong
atomic_llong
atomic< char16_t > atomic_char16_t
atomic_char16_t
atomic< int_fast64_t > atomic_int_fast64_t
atomic_int_fast64_t
atomic< ptrdiff_t > atomic_ptrdiff_t
atomic_ptrdiff_t
atomic< char32_t > atomic_char32_t
atomic_char32_t
atomic< int_least16_t > atomic_int_least16_t
atomic_int_least16_t
atomic< unsigned char > atomic_uchar
atomic_uchar
atomic< int_fast8_t > atomic_int_fast8_t
atomic_int_fast8_t
memory_order
Enumeration for memory_order.
atomic< unsigned short > atomic_ushort
atomic_ushort
atomic< int_least64_t > atomic_int_least64_t
atomic_int_least64_t
atomic< bool > atomic_bool
atomic_bool
atomic< uint_fast32_t > atomic_uint_fast32_t
atomic_uint_fast32_t
atomic< uint32_t > atomic_uint32_t
atomic_uint32_t
ISO C++ entities toplevel namespace is std.
Generic atomic type, primary class template.