bsl::deque::erase

Erase the element at position from this deque.

Synopsis

Declared in <bslstl_deque.h>

deque<VALUE_TYPE, ALLOCATOR>::iterator
erase(const_iterator position);

Description

Remove from this deque the element at the specified position, and return an iterator providing modifiable access to the element immediately following the removed element, or the position returned by the method end if the removed element was the last in the sequence. The behavior is undefined unless position is an iterator in the range [cbegin() .. cend())].

Return Value

iterator to the element following the erased element

Parameters

NameDescription
positioniterator to the element to erase