Document the return value of SmallSet insert.
authorNadav Rotem <nrotem@apple.com>
Thu, 4 Apr 2013 04:54:21 +0000 (04:54 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 4 Apr 2013 04:54:21 +0000 (04:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178742 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallSet.h

index 4eb7de895a68933d74c573ef669e382f5a670b10..5dfe924f6d783e105561f73f48c65a6d18bc6aa7 100644 (file)
@@ -55,6 +55,7 @@ public:
   }
 
   /// insert - Insert an element into the set if it isn't already there.
+  /// Returns true if the element is inserted (it was not in the set before).
   bool insert(const T &V) {
     if (!isSmall())
       return Set.insert(V).second;