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:
a6d699b
)
[ADT] Use std::conditional_t (NFC)
author
Kazu Hirata
<kazu@google.com>
Mon, 26 Sep 2022 06:14:13 +0000
(23:14 -0700)
committer
Kazu Hirata
<kazu@google.com>
Mon, 26 Sep 2022 06:14:13 +0000
(23:14 -0700)
llvm/include/llvm/ADT/SmallVector.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/SmallVector.h
b/llvm/include/llvm/ADT/SmallVector.h
index
14f051e
..
513fce9
100644
(file)
--- a/
llvm/include/llvm/ADT/SmallVector.h
+++ b/
llvm/include/llvm/ADT/SmallVector.h
@@
-468,8
+468,7
@@
protected:
/// Either const T& or T, depending on whether it's cheap enough to take
/// parameters by value.
- using ValueParamT =
- typename std::conditional<TakesParamByValue, T, const T &>::type;
+ using ValueParamT = std::conditional_t<TakesParamByValue, T, const T &>;
SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}