The list swap function is used in c++ to swap the values of two lists with the same size and type.
std::list<int> a{1, 2, 3, 4, 5};
std::list<int> b{6, 7, 8, 9, 10};
a.swap(b);
//from here the content of a is in b and vice-versa
The list swap function is used in c++ to swap the values of two lists with the same size and type.
std::list<int> a{1, 2, 3, 4, 5};
std::list<int> b{6, 7, 8, 9, 10};
a.swap(b);
//from here the content of a is in b and vice-versa
For further actions, you may consider blocking this person and/or reporting abuse
Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.
Bob Cars(on) -
Mike Young -
Mike Young -
Mike Young -
Top comments (0)