std::exchange Patterns: Fast, Safe, Expressive, and Probably Underused
▻https://www.fluentcpp.com/2020/09/25/stdexchange-patterns-fast-safe-expressive-and-probably-underused
This is a guest post from Ben Deane. Ben is a lifelong learner and algorithms fan who works in the finance industry and loves to write expressive, well-performing C++. You can find him on twitter @ben_deane. This blog post has been a long time in the making. I gave a lightning talk on std::exchange at […]