[PATCH] D48504: [WIP] Add InsertionOrderSet, with constant-time insertion and removal.
    Alexandros Lamprineas via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 25 03:27:56 PDT 2018
    
    
  
labrinea added inline comments.
================
Comment at: include/llvm/ADT/InsertionOrderSet.h:63
+  }
+
+  void clear() {
----------------
Since the iterator does not allow random access of the underlying vector we might want something like this:
```
iterator at(size_t idx) {
  return MakeSetIterator(Vec.begin()+idx);
}
```
Repository:
  rL LLVM
https://reviews.llvm.org/D48504
    
    
More information about the llvm-commits
mailing list