[ADT] Use std::is_copy_constructible_v (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 20 Nov 2022 19:32:31 +0000 (11:32 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 20 Nov 2022 19:32:31 +0000 (11:32 -0800)
llvm/include/llvm/ADT/MapVector.h

index 27232c2..9d908f3 100644 (file)
@@ -109,7 +109,7 @@ public:
 
   // Returns a copy of the value.  Only allowed if ValueT is copyable.
   ValueT lookup(const KeyT &Key) const {
-    static_assert(std::is_copy_constructible<ValueT>::value,
+    static_assert(std::is_copy_constructible_v<ValueT>,
                   "Cannot call lookup() if ValueT is not copyable.");
     typename MapType::const_iterator Pos = Map.find(Key);
     return Pos == Map.end()? ValueT() : Vector[Pos->second].second;