mirror of https://github.com/CGAL/cgal
formatting
This commit is contained in:
parent
7d543ae42a
commit
bea63ec2f6
|
|
@ -571,21 +571,20 @@ void Compact_container<T, Allocator>::allocate_new_block()
|
||||||
put_on_free_list(new_block + i);
|
put_on_free_list(new_block + i);
|
||||||
// We insert this new block at the end.
|
// We insert this new block at the end.
|
||||||
if (last_item == NULL) // First time
|
if (last_item == NULL) // First time
|
||||||
{
|
{
|
||||||
first_item = new_block;
|
first_item = new_block;
|
||||||
last_item = new_block + block_size + 1;
|
last_item = new_block + block_size + 1;
|
||||||
set_type(first_item, NULL, START_END);
|
set_type(first_item, NULL, START_END);
|
||||||
set_type(last_item, NULL, START_END);
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
set_type(last_item, new_block, BLOCK_BOUNDARY);
|
set_type(last_item, new_block, BLOCK_BOUNDARY);
|
||||||
set_type(new_block, last_item, BLOCK_BOUNDARY);
|
set_type(new_block, last_item, BLOCK_BOUNDARY);
|
||||||
last_item = new_block + block_size + 1;
|
last_item = new_block + block_size + 1;
|
||||||
set_type(last_item, NULL, START_END);
|
}
|
||||||
}
|
set_type(last_item, NULL, START_END);
|
||||||
// Increase the block_size for the next time.
|
// Increase the block_size for the next time.
|
||||||
block_size += 16;
|
block_size += 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
template < class T, class Allocator >
|
template < class T, class Allocator >
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue