We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89365b1 commit c5a69aeCopy full SHA for c5a69ae
llvm/include/llvm/ADT/MapVector.h
@@ -109,7 +109,7 @@ class MapVector {
109
110
// Returns a copy of the value. Only allowed if ValueT is copyable.
111
ValueT lookup(const KeyT &Key) const {
112
- static_assert(std::is_copy_constructible<ValueT>::value,
+ static_assert(std::is_copy_constructible_v<ValueT>,
113
"Cannot call lookup() if ValueT is not copyable.");
114
typename MapType::const_iterator Pos = Map.find(Key);
115
return Pos == Map.end()? ValueT() : Vector[Pos->second].second;
0 commit comments