[libc-commits] [libc] 8834825 - [libc] Add missing add_lvalue_reference_t (#65940)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 11 02:31:41 PDT 2023
Author: Guillaume Chatelet
Date: 2023-09-11T11:31:37+02:00
New Revision: 88348252a60e22dacde9cf92a0767e9f89c2e287
URL: https://github.com/llvm/llvm-project/commit/88348252a60e22dacde9cf92a0767e9f89c2e287
DIFF: https://github.com/llvm/llvm-project/commit/88348252a60e22dacde9cf92a0767e9f89c2e287.diff
LOG: [libc] Add missing add_lvalue_reference_t (#65940)
Added:
Modified:
libc/src/__support/CPP/type_traits/add_lvalue_reference.h
Removed:
################################################################################
diff --git a/libc/src/__support/CPP/type_traits/add_lvalue_reference.h b/libc/src/__support/CPP/type_traits/add_lvalue_reference.h
index 7cb22ac03bb033c..d07db42aaac3601 100644
--- a/libc/src/__support/CPP/type_traits/add_lvalue_reference.h
+++ b/libc/src/__support/CPP/type_traits/add_lvalue_reference.h
@@ -22,6 +22,8 @@ auto try_add_lvalue_reference(...) -> cpp::type_identity<T>;
template <class T>
struct add_lvalue_reference : decltype(detail::try_add_lvalue_reference<T>(0)) {
};
+template <class T>
+using add_lvalue_reference_t = typename add_lvalue_reference<T>::type;
} // namespace __llvm_libc::cpp
More information about the libc-commits
mailing list