Erases every element for which predicate returns true; returns the count.
Synopsis
Declared in <folly/container/sorted_vector_types.h>
template<class Predicate>
size_type
erase_if(
sorted_vector_map& container,
Predicate predicate);
|
Note
|
This function is a hidden friend of sorted_vector_map, declared only inside that class: it can be found only through argument-dependent lookup. |
Return Value
The number of elements removed.
Parameters
Name |
Description |
container |
The map to erase elements from. |
predicate |
Predicate selecting the elements to erase. |
Created with MrDocs