Skip to content

Commit c5a69ae

Browse files
[ADT] Use std::is_copy_constructible_v (NFC)
1 parent 89365b1 commit c5a69ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/MapVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class MapVector {
109109

110110
// Returns a copy of the value. Only allowed if ValueT is copyable.
111111
ValueT lookup(const KeyT &Key) const {
112-
static_assert(std::is_copy_constructible<ValueT>::value,
112+
static_assert(std::is_copy_constructible_v<ValueT>,
113113
"Cannot call lookup() if ValueT is not copyable.");
114114
typename MapType::const_iterator Pos = Map.find(Key);
115115
return Pos == Map.end()? ValueT() : Vector[Pos->second].second;

0 commit comments

Comments
 (0)