[PATCH] D113242: Adding a key_type definition to MapVector

Kevin Cadieux via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 6 21:45:07 PDT 2021


kevcadieux updated this revision to Diff 385323.
kevcadieux added a comment.

Rebasing.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113242/new/

https://reviews.llvm.org/D113242

Files:
  llvm/include/llvm/ADT/MapVector.h


Index: llvm/include/llvm/ADT/MapVector.h
===================================================================
--- llvm/include/llvm/ADT/MapVector.h
+++ llvm/include/llvm/ADT/MapVector.h
@@ -43,6 +43,7 @@
       "The mapped_type of the specified Map must be an integral type");
 
 public:
+  using key_type = KeyT;
   using value_type = typename VectorType::value_type;
   using size_type = typename VectorType::size_type;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113242.385323.patch
Type: text/x-patch
Size: 423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211107/79fee7f9/attachment.bin>


More information about the llvm-commits mailing list