[llvm] [MapVector] Introduce {keys,values} iterators (PR #169675)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 10:15:19 PST 2025


================
@@ -99,6 +99,11 @@ class MapVector {
     return try_emplace_impl(Key).first->second;
   }
 
+  [[nodiscard]] inline auto keys() { return make_first_range(Vector); }
----------------
fhahn wrote:

is there a reason for using `inline` here? Looks like the other members all don't

https://github.com/llvm/llvm-project/pull/169675


More information about the llvm-commits mailing list