projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9ae76
)
[libc] Add value_type to cpp::array
author
Guillaume Chatelet
<gchatelet@google.com>
Fri, 7 Apr 2023 11:24:12 +0000
(11:24 +0000)
committer
Guillaume Chatelet
<gchatelet@google.com>
Fri, 7 Apr 2023 11:58:38 +0000
(11:58 +0000)
libc/src/__support/CPP/array.h
patch
|
blob
|
history
diff --git
a/libc/src/__support/CPP/array.h
b/libc/src/__support/CPP/array.h
index
97db026
..
c0bd32f
100644
(file)
--- 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 *;