René's URL Explorer Experiment


Title: Swap containers - C++ Patterns

Open Graph Title: Swap containers - C++ Patterns

Description: Swap the contents of two containers.

Open Graph Description: Swap the contents of two containers.

Opengraph URL: https://cpppatterns.com/patterns/swap-containers.html

direct link

Domain: cpppatterns.com

twitter:cardsummary
twitter:creator@sftrabbit
og:site_nameC++ Patterns
fb:app_id676162015844286

Links:

C++Patternshttps://cpppatterns.com/
https://github.com/sftrabbit/CppPatterns-Patterns
https://twitter.com/cpppatterns
← Patternshttps://cpppatterns.com/
CC0 Public Domain Dedicationhttp://creativecommons.org/publicdomain/zero/1.0/
c++98https://cpppatterns.com/#/search/c++98
lines 7–8https://cpppatterns.com/patterns/swap-containers.html#line7
std::vectorhttp://en.cppreference.com/w/cpp/container/vector
line 10https://cpppatterns.com/patterns/swap-containers.html#line10
std::swap_rangeshttp://en.cppreference.com/w/cpp/algorithm/swap_ranges
line 12https://cpppatterns.com/patterns/swap-containers.html#line12
lines 14–15https://cpppatterns.com/patterns/swap-containers.html#line14
generic swap patternhttps://cpppatterns.com/patterns/swap-values.html
https://github.com/sftrabbit
https://github.com/DarkerStar
Fork this pattern on GitHubhttps://github.com/sftrabbit/CppPatterns-Patterns/tree/master/common-tasks/algorithms/swap-containers.cpp
Tweethttps://twitter.com/share
fork the project on GitHubhttps://github.com/sftrabbit/CppPatterns-Patterns
Tweethttps://twitter.com/share
Joseph Mansfieldhttp://josephmansfield.uk/

Viewport: width=device-width,user-scalable=no


URLs of crawlers that visited me.