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
Mark Nefedov -
Irfan -
Chris Kay -
Mark Nefedov -
Once suspended, dochan will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, dochan will be able to comment and publish posts again.
Once unpublished, all posts by dochan will become hidden and only accessible to themselves.
If dochan is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Farhan Yahya.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag dochan:
Unflagging dochan will restore default visibility to their posts.
Top comments (0)