<list>, funkcje

swap

Wymienia elementy dwóch list.

template <class T, class Allocator>
    void swap(list<T, Allocator>& left, list<T, Allocator>& right)

Parametry

Lewej
Obiekt typu list.

Prawo
Obiekt typu list.

Uwagi

Ta funkcja szablonu wykonuje left.swap(right)polecenie .