void resize(n, t = T()) | Sequence | Inserts or erases elements at the end such that the size becomes |
void splice(iterator pos, list& L) | list | See below. |
void splice(iterator pos, list& L, iterator i) | list | See below. |
void splice(iterator pos, list& L, iterator f, iterator l) | list | See below. |
void remove(const T& value) | list | See below. |
void unique() | list | See below. |
void merge(list& L) | list | See below. |
void sort() | list | See below. |
bool operator==(const list&, const list&) | Forward Container | Tests two lists for equality. This is a global function, not a member function. |
bool operator<(const list&, const list&) | Forward Container | Lexicographical comparison. This is a global function, not a member function. |
These members are not defined in the Reversible Container, Front Insertion Sequence, and Back Insertion Sequence requirements, but are specific to
Function | Description |
---|---|
void splice(iterator position, list<T, Alloc>& x); | |
void splice(iterator position, list<T, Alloc>& x, iterator i); | |
void splice(iterator position, list<T, Alloc>& x, iterator f, iterator l); | |
void remove(const T& val); | Removes all elements that compare equal to |
Вы читаете Standard Template Library Programmer's Guide