Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2022. The current version is 1.89.0.
Remove a value from the container.
In contrast to the
or std::set method this method removes
only one value from the container.
std::map erase()
size_typeremove(value_typeconst &value)
|
Type |
Name |
Description |
|---|---|---|
|
|
|
The value which will be removed from the container. |
1 if the value was removed, 0 otherwise.
![]() |
Warning |
|---|---|
This operation only guarantees that there will be no memory leaks. After an exception is thrown the R-tree may be left in an inconsistent state, elements must not be inserted or removed. Other operations are allowed however some of them may return invalid data. |