[#bsl-erase-0c] = xref:bsl.adoc[bsl]::erase :relfileprefix: ../ :mrdocs: Erase all the elements in the specified vector `vec` that compare equal to the specified `value`. Return the number of elements erased. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class ALLOCATOR, class BDE_OTHER_TYPE> vector<VALUE_TYPE, ALLOCATOR>::size_type erase( xref:bsl/vector-00d.adoc[vector<VALUE_TYPE, ALLOCATOR>]& vec, BDE_OTHER_TYPE const& value); ---- == Return Value number of elements erased == Parameters [cols="1,4"] |=== | Name| Description | *vec* | vector to modify | *value* | element value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#