Talk:cpp/algorithm/swap ranges
From cppreference.com
In the *Preconditions* part of the algorithm description, the standard mentions this:
> The two ranges [first1, last1)
and [first2, last2)
do not overlap.
I recently got bitten by that. This should probably be worth mentioning in the page.
Morwenn (talk) 11:46, 17 January 2021 (PST)
- You're right. Done. Thank you. --Space Mission (talk) 23:34, 18 January 2021 (PST)