Skip to content

Glossary: C++ Beyond the Basics

Emplace

Also written: emplace_back

`emplace_back` builds a new element directly inside a container from constructor arguments, avoiding a temporary and a copy.

Where the book teaches it

Related terms

Move constructor