Template:cpp/container/erase assoc

Removes specified elements from the container.

@1,2@ Removes the element at. @3@ Removes the elements in the range, which must be a valid range in. @4@ Removes with the key equivalent to. @5@ Removes all elements with key that compares equivalent to the value.

The iterator must be valid and dereferenceable. Thus the end iterator (which is valid, but is not dereferenceable) cannot be used as a value for.

Return value
@1-3@ Iterator following the last removed element. @4@ Number of elements. @5@ Number of elements removed.

Exceptions
@1-3@ Throws nothing. @4,5@ Any exceptions thrown by the object.

Complexity
Given an instance of :