[#bsl-erase-03] = xref:bsl.adoc[bsl]::erase :relfileprefix: ../ :mrdocs: `erase` overloads == Synopses Declared in `<bslstl_deque.h>` Erase all the elements in the specified deque `deq` that compare equal to the specified `value`. Return the number of elements erased. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class ALLOCATOR, class BDE_OTHER_TYPE> deque<VALUE_TYPE, ALLOCATOR>::size_type xref:bsl/erase-082.adoc[erase]( xref:bsl/deque-0c.adoc[deque<VALUE_TYPE, ALLOCATOR>]& deq, BDE_OTHER_TYPE const& value); ---- [.small]#xref:bsl/erase-082.adoc[_» more..._]# Erase all the elements in the specified list `l` that compare equal to the specified `value`. Return the number of elements erased. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class ALLOCATOR, class BDE_OTHER_TYPE> bsl::list<VALUE, ALLOCATOR>::size_type xref:bsl/erase-086.adoc[erase]( xref:bsl/list-054.adoc[list<VALUE, ALLOCATOR>]& l, BDE_OTHER_TYPE const& value); ---- [.small]#xref:bsl/erase-086.adoc[_» more..._]# Erase all the elements in the specified vector `vec` that compare equal to the specified `value`. Return the number of elements erased. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class ALLOCATOR, class BDE_OTHER_TYPE> vector<VALUE_TYPE, ALLOCATOR>::size_type xref:bsl/erase-0c.adoc[erase]( xref:bsl/vector-00d.adoc[vector<VALUE_TYPE, ALLOCATOR>]& vec, BDE_OTHER_TYPE const& value); ---- [.small]#xref:bsl/erase-0c.adoc[_» more..._]# Erase (in‐place) all the elements from the specified `str` that compare equal to the specified `c`, and return the number of erased elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_TYPE, class CHAR_TRAITS, class ALLOCATOR, class OTHER_CHAR_TYPE> bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::size_type xref:bsl/erase-07.adoc[erase]( xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>]& str, OTHER_CHAR_TYPE const& c); ---- [.small]#xref:bsl/erase-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#