This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix bucket_count() assumptions.
ClosedPublic

Authored by STL_MSFT on Nov 14 2016, 12:07 PM.

Details

Summary

[libcxx] [test] Fix bucket_count() assumptions.

With a max_load_factor of 1.0, the only guarantee is that
bucket_count() >= size(). (Note: setting max_load_factor without
rehashing isn't supposed to affect this, because setting
max_load_factor is currently specified to be constant time.)

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 77855.Nov 14 2016, 12:07 PM
STL_MSFT retitled this revision from to [libcxx] [test] Fix bucket_count() assumptions..
STL_MSFT updated this object.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
EricWF accepted this revision.Nov 14 2016, 12:12 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Nov 14 2016, 12:12 PM
STL_MSFT closed this revision.Nov 15 2016, 9:13 AM

r286982, thanks.