[libc-commits] [libc] 40d8591 - [libc] Add value_type to cpp::array
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Fri Apr 7 04:58:49 PDT 2023
Author: Guillaume Chatelet
Date: 2023-04-07T11:58:38Z
New Revision: 40d859154c1692e6e2d6a7ad91efd610c9b7e5be
URL: https://github.com/llvm/llvm-project/commit/40d859154c1692e6e2d6a7ad91efd610c9b7e5be
DIFF: https://github.com/llvm/llvm-project/commit/40d859154c1692e6e2d6a7ad91efd610c9b7e5be.diff
LOG: [libc] Add value_type to cpp::array
Added:
Modified:
libc/src/__support/CPP/array.h
Removed:
################################################################################
diff --git a/libc/src/__support/CPP/array.h b/libc/src/__support/CPP/array.h
index 97db02668c0e..c0bd32f6bcbf 100644
--- a/libc/src/__support/CPP/array.h
+++ b/libc/src/__support/CPP/array.h
@@ -18,7 +18,7 @@ template <class T, size_t N> struct array {
static_assert(N != 0, "Cannot create a __llvm_libc::cpp::array of size 0.");
T Data[N];
-
+ using value_type = T;
using iterator = T *;
using const_iterator = const T *;
More information about the libc-commits
mailing list