bsl::erase_if

Erase (in-place) all the elements from the specified str where the specified pred returns true, and return the number of erased elements.

Synopsis

Declared in <bslstl_string.h>

template<
    class CHAR_TYPE,
    class CHAR_TRAITS,
    class ALLOCATOR,
    class UNARY_PREDICATE>
bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::size_type
erase_if(
    basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>& str,
    UNARY_PREDICATE const& pred);