Replace cancel_removal() by cancel_removals()

This commit is contained in:
Simon Giraudot 2018-12-12 10:42:31 +01:00
parent ee2d6eb3ab
commit 1b7a2eb2c5
2 changed files with 5 additions and 5 deletions

View File

@ -562,7 +562,7 @@ public:
\note The elements are just marked as removed and are not erased \note The elements are just marked as removed and are not erased
from the memory. `collect_garbage()` should be called if the from the memory. `collect_garbage()` should be called if the
memory needs to be disallocated. Elements can be recovered with memory needs to be disallocated. Elements can be recovered with
`cancel_removal()`. `cancel_removals()`.
\note All iterators, pointers and references related to the \note All iterators, pointers and references related to the
container are invalidated. container are invalidated.
@ -601,7 +601,7 @@ public:
\note The element is just marked as removed and is not erased from \note The element is just marked as removed and is not erased from
the memory. `collect_garbage()` should be called if the memory the memory. `collect_garbage()` should be called if the memory
needs to be freed. The element can be recovered with needs to be freed. The element can be recovered with
`cancel_removal()`. `cancel_removals()`.
\note The `end()` iterator is invalidated, `it` dereferences to a \note The `end()` iterator is invalidated, `it` dereferences to a
different element. different element.
@ -618,7 +618,7 @@ public:
\note The element is just marked as removed and is not erased from \note The element is just marked as removed and is not erased from
the memory. `collect_garbage()` should be called if the memory the memory. `collect_garbage()` should be called if the memory
needs to be freed. The element can be recovered with needs to be freed. The element can be recovered with
`cancel_removal()`. `cancel_removals()`.
\note The `end()` iterator is invalidated, `it` dereferences to a \note The `end()` iterator is invalidated, `it` dereferences to a
different element. different element.
@ -725,7 +725,7 @@ public:
\note If `collect_garbage()` was called after removal, the points \note If `collect_garbage()` was called after removal, the points
are irremediably lost and nothing will be restored. are irremediably lost and nothing will be restored.
*/ */
void cancel_removal() void cancel_removals()
{ {
m_nb_removed = 0; m_nb_removed = 0;
for (std::size_t i = 0; i < this->m_base.size(); ++ i) for (std::size_t i = 0; i < this->m_base.size(); ++ i)

View File

@ -138,7 +138,7 @@ public:
void reset_indices() void reset_indices()
{ {
this->cancel_removal(); this->cancel_removals();
} }
bool add_radius() bool add_radius()