Expand calls to clear implementation

This commit is contained in:
Daniel James
2017-04-23 10:09:18 +01:00
parent f6f5ecdc00
commit 814926ef31
3 changed files with 29 additions and 24 deletions

View File

@@ -3078,17 +3078,6 @@ struct table : boost::unordered::detail::functions<typename Types::hasher,
BOOST_ASSERT(!size_);
}
void clear()
{
if (!size_)
return;
clear_buckets();
delete_nodes(get_previous_start(), link_pointer());
BOOST_ASSERT(!size_);
}
void destroy_buckets()
{
bucket_pointer end = get_bucket(bucket_count_ + 1);