refactor DeallocatingVector, apply boost::iterator_facade
This commit is contained in:
parent
5840829cdc
commit
d5a9f8e177
@ -233,7 +233,7 @@ class DeallocatingVector
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const std::size_t number_of_necessary_buckets = 1 + (new_size / ELEMENTS_PER_BLOCK);
|
const std::size_t number_of_necessary_buckets = 1 + (new_size / ELEMENTS_PER_BLOCK);
|
||||||
for (auto bucket : bucket_list.size())
|
for (auto bucket : bucket_list)
|
||||||
{
|
{
|
||||||
delete[] bucket;
|
delete[] bucket;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user