- This may be old news, but I wrote a naive benchmark to confirm that std::swap is faster than xor-ing variables nowadays. https://github.com/vladov3000/xor_vs_std_swap 26 comments cpp
Linked pages
Would you like to stay up to date with C & C++? Checkout C & C++
Weekly.
Related searches:
Search whole site: site:github.com
Search title: GitHub - vladov3000/xor_vs_std_swap
See how to search.