llvm.org GIT mirror llvm / 0fcccd4
allow clients of SmallSet to specify their own comparison function for the set. Patch by Stepan Dyatkovskiy! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147607 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2626 ///
2727 /// Note that this set does not provide a way to iterate over members in the
2828 /// set.
29 template >
29 template , typename C = std::less >
3030 class SmallSet {
3131 /// Use a SmallVector to hold the elements here (even though it will never
3232 /// reach its 'large' stage) to avoid calling the default ctors of elements
3333 /// we will never use.
3434 SmallVector Vector;
35 std::set> Set;
35 std::set, C> Set;
3636 typedef typename SmallVector::const_iterator VIterator;
3737 typedef typename SmallVector::iterator mutable_iterator;
3838 public: