[PATCH] D20930: Adding reserve and capacity methods to FoldingSet

Ben Craig via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 11:14:07 PDT 2016


bcraig added inline comments.

================
Comment at: include/llvm/ADT/FoldingSet.h:184
@@ +183,3 @@
+  void reserve(unsigned EltCount);
+  unsigned capacity() {
+    // We allow a load factor of up to 2.0,
----------------
zaks.anna wrote:
> Please, add a comment describing the capacity() API.
reserve and capacity documentation added in r271694.


http://reviews.llvm.org/D20930





More information about the llvm-commits mailing list