[llvm] r178742 - Document the return value of SmallSet insert.

Nadav Rotem nrotem at apple.com
Wed Apr 3 21:54:21 PDT 2013


Author: nadav
Date: Wed Apr  3 23:54:21 2013
New Revision: 178742

URL: http://llvm.org/viewvc/llvm-project?rev=178742&view=rev
Log:
Document the return value of SmallSet insert.

Modified:
    llvm/trunk/include/llvm/ADT/SmallSet.h

Modified: llvm/trunk/include/llvm/ADT/SmallSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallSet.h?rev=178742&r1=178741&r2=178742&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallSet.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallSet.h Wed Apr  3 23:54:21 2013
@@ -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;





More information about the llvm-commits mailing list