Closed DarkerStar closed 9 years ago
Great samples. Thanks very much. I reworded the descriptions a bit because I felt they repeated a few things and could be cut down without affecting anything. I also changed the swap values sample to use std::string
s instead of int
s (just seems a bit more substantial). The revised samples are here.
Both good points! Glad I could help.
I added two swap samples. The first is for swapping values - it demonstrates how to use ADL-enabled swapping. The second is for swapping containers - it demonstrates the difference between swapping the values of a container (via
swap_ranges
) and swapping the containers wholesale.