Doxygen for FoldingSet::reserve and FoldingSet::capacity

llvm-svn: 271694
This commit is contained in:
Ben Craig 2016-06-03 17:50:14 +00:00
parent 648d3bc8c7
commit eff9278a7e
1 changed files with 5 additions and 0 deletions

View File

@ -180,7 +180,12 @@ public:
/// empty - Returns true if there are no nodes in the folding set.
bool empty() const { return NumNodes == 0; }
/// reserve - Increase the number of buckets such that adding the
/// EltCount-th node won't cause a rebucket operation. reserve is permitted
/// to allocate more space than requested by EltCount.
void reserve(unsigned EltCount);
/// capacity - Returns the number of nodes permitted in the folding set
/// before a rebucket operation is performed.
unsigned capacity() {
// We allow a load factor of up to 2.0,
// so that means our capacity is NumBuckets * 2