...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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_type
remove
(
value_type
const &
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. |