79237509

Date: 2024-11-29 15:00:16
Score: 2.5
Natty:
Report link

Use std::swap to do a swap, as johannes-shaub recommends. But as of C++17, what might also be called multiple assignment or tuple unpacking is achievable with structured bindings.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Eric Boesch