projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e16488
)
Document the return value of SmallSet insert.
author
Nadav Rotem
<nrotem@apple.com>
Thu, 4 Apr 2013 04:54:21 +0000
(
04:54
+0000)
committer
Nadav 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
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SmallSet.h
b/include/llvm/ADT/SmallSet.h
index 4eb7de895a68933d74c573ef669e382f5a670b10..5dfe924f6d783e105561f73f48c65a6d18bc6aa7 100644
(file)
--- a/
include/llvm/ADT/SmallSet.h
+++ b/
include/llvm/ADT/SmallSet.h
@@
-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;