erase overloads

Synopses

Declared in <bslstp_slist.h>

Erase the element at __pos and return the following iterator.

Erase the elements in the half‐open range [`__first`, __last).]

iterator
erase(
    iterator __first,
    iterator __last);

Return Value

  • iterator referring to the element after __pos

  • iterator referring to __last

Parameters

Name

Description

__pos

position of the element to erase

__first

beginning of the erased range

__last

end of the erased range (exclusive)

Created with MrDocs