Skip to content

Commit 5f3ed64

Browse files
committed
[libc++][atomic_ref] cleanup header includes
1 parent bb44136 commit 5f3ed64

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

libcxx/include/__atomic/atomic_ref.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,10 @@
2323
#include <__config>
2424
#include <__memory/addressof.h>
2525
#include <__type_traits/is_floating_point.h>
26-
#include <__type_traits/is_function.h>
27-
#include <__type_traits/is_nothrow_constructible.h>
26+
#include <__type_traits/is_integral.h>
2827
#include <__type_traits/is_same.h>
29-
#include <cinttypes>
30-
#include <concepts>
28+
#include <__type_traits/is_trivially_copyable.h>
3129
#include <cstddef>
32-
#include <limits>
3330

3431
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
3532
# pragma GCC system_header
@@ -231,7 +228,7 @@ struct __atomic_ref_base<_Tp, /*_IsIntegral=*/false, /*_IsFloatingPoint=*/true>
231228

232229
template <class _Tp>
233230
struct atomic_ref : public __atomic_ref_base<_Tp> {
234-
static_assert(is_trivially_copyable<_Tp>::value, "std::atomic_ref<T> requires that 'T' be a trivially copyable type");
231+
static_assert(is_trivially_copyable_v<_Tp>, "std::atomic_ref<T> requires that 'T' be a trivially copyable type");
235232

236233
using __base = __atomic_ref_base<_Tp>;
237234

0 commit comments

Comments
 (0)