Skip to content

Commit b4d6c0f

Browse files
cjdbgchatelet
andauthored
[libc] continues header cleanup process (#65556)
* replaces `add_rvalue_reference_t` with `is_rvalue_reference_t` * includes `"stddef.h"` for `size_t` include --------- Co-authored-by: Guillaume Chatelet <[email protected]>
1 parent c998106 commit b4d6c0f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc/src/__support/CPP/type_traits/is_rvalue_reference.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ template <typename T> struct is_rvalue_reference : public false_type {};
2525
template <typename T> struct is_rvalue_reference<T &&> : public true_type {};
2626
#endif
2727
template <class T>
28-
using add_rvalue_reference_t = typename add_rvalue_reference<T>::type;
28+
LIBC_INLINE_VAR constexpr bool is_rvalue_reference_v =
29+
is_rvalue_reference<T>::value;
2930

3031
} // namespace __llvm_libc::cpp
3132

libc/src/__support/CPP/type_traits/remove_extent.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define LLVM_LIBC_SRC_SUPPORT_CPP_TYPE_TRAITS_REMOVE_EXTENT_H
1010

1111
#include "src/__support/CPP/type_traits/type_identity.h"
12+
#include "stddef.h" // size_t
1213

1314
namespace __llvm_libc::cpp {
1415

0 commit comments

Comments
 (0)