Remove consecutive duplicate elements.
For each consecutive set of elements with the same value, remove all but the first one. Remaining elements stay in list order. Note that this function only erases the elements, and that if the elements themselves are pointers, the pointed-to memory is not touched in any way. Managing the pointer is the user's responsibility.
Definition at line 362 of file list.tcc.
364 {
369#if !_GLIBCXX_USE_CXX11_ABI
371#endif
375 {
377 {
379#if !_GLIBCXX_USE_CXX11_ABI
381#endif
382 }
383 else
386 }
387
388#if !_GLIBCXX_USE_CXX11_ABI
390#else
392#endif
393 }
#define _GLIBCXX20_ONLY(__expr)
iterator begin() noexcept
allocator_type get_allocator() const noexcept
Get a copy of the memory allocation object.
size_type size() const noexcept
_Node_traits::_Iterator iterator
list()=default
Creates a list with no elements.
void splice(const_iterator __position, list &&__x) noexcept
Insert contents of another list.
A standard container with linear time access to elements, and fixed time insertion/deletion at any po...
References list(), _GLIBCXX20_ONLY, begin(), end(), get_allocator(), size(), and splice().