forward_list::erase_after
지정 된 위치 뒤의 앞 목록에서 요소를 제거합니다.
iterator erase_after(const_iterator _Where);
iterator erase_after(const_iterator _First, const_iterator _Last);
매개 변수
Parameter |
설명 |
---|---|
_Where |
The position in the target forward list where the element is erased. |
_First |
The beginning of the range to erase. |
_Last |
The end of the range to erase. |
반환 값
제거된 요소 다음에 남은 첫 번째 요소를 지정하는 반복기이거나, 이러한 요소가 없는 경우 forward_list::end입니다.
설명
The first member function removes the element of the controlled sequence just after _Where.
The second member function removes the elements of the controlled sequence in the range (_First, _Last) (neither end point is included).
Erasing N elements causes N destructor calls. Reallocation occurs, so iterators and references become invalid for the erased elements.
The member functions never throw an exception.
요구 사항
헤더: <forward_list>
네임스페이스: std