This patch makes swap functions constexpr. This patch does not implement all of P0879R0 for two reasons a) to make this patch easier to review and b) because std::swap being a constexpr disproportionately helps when implementing other papers. Both swap overloads, swap_ranges and iter_swap are updated (with tests).
Details
Details
Diff Detail
Diff Detail