CppCon 2019 has ended
Back To Schedule
Thursday, September 19 • 16:45 - 17:45
In-place Construction: the Routine Complexities of Efficiency

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Efficient C++ has always been about minimizing copies. This practically-focused
talk is about how to do that when working with move semantics, perfect
forwarding and STL containers, or non-STL containers that present similar

In-place construction is an easily stated goal, but can be really fiddly to get
right, especially given the foibles of various container interfaces. We'll talk
about copy elision; when to use emplace, insert, or other methods; vectors,
maps, optionals, variants; and how things change from C++11 through C++20.
Attendees will learn why in-place construction is beneficial and exactly how to
achieve optimal efficiency with the various standard container types.


Ben Deane

Ben was a game programmer for over 20 years, working in C++ since the late 90s for companies like EA and Blizzard. In 2018 he left the games industry to join Quantlab, an automated trading firm, where he writes modern, well-performing C++. He likes to play with algorithms, and to... Read More →

Thursday September 19, 2019 16:45 - 17:45
Crest 4/5

Attendees (191)