From 8ff6bc924fbff00b63b84a8bd00cb0fd85265087 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 5 Jan 2012 17:35:07 +0000 Subject: allow clients of SmallSet to specify their own comparison function for the set. Patch by Stepan Dyatkovskiy! llvm-svn: 147607 --- llvm/include/llvm/ADT/SmallSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm') diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h index d03f1bef15b..cd117f59ba7 100644 --- a/llvm/include/llvm/ADT/SmallSet.h +++ b/llvm/include/llvm/ADT/SmallSet.h @@ -27,13 +27,13 @@ namespace llvm { /// /// Note that this set does not provide a way to iterate over members in the /// set. -template +template > class SmallSet { /// Use a SmallVector to hold the elements here (even though it will never /// reach its 'large' stage) to avoid calling the default ctors of elements /// we will never use. SmallVector Vector; - std::set Set; + std::set Set; typedef typename SmallVector::const_iterator VIterator; typedef typename SmallVector::iterator mutable_iterator; public: -- cgit v1.2.3