Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
swap
Exchanges the elements of two lists.
template <class T, class Allocator>
void swap(list<T, Allocator>& left, list<T, Allocator>& right)
Parameters
left
An object of type list.
right
An object of type list.
Remarks
This template function executes left.swap(right).