إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
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).