Open
Description
Part of modernizing a project to use ranges includes replacing uses of std::swap
or instances of the "std 2-step" pattern with calls to std::ranges::swap
.
Example:
std::swap(a, b);
or
using std::swap;
swap(a, b);
can both be replaced with:
std::ranges::swap(a, b);
In the latter case an unqualified call to swap
should only be flagged if using std::swap;
is present in the same scope before the call.