Skip to content

Glossary: C++ Beyond the Basics

Copy constructor

A constructor `T(const T&)` that builds a new object as a copy of an existing one, such as copying a vector of 10,000 order lines.

Where the book teaches it

Related terms

Copy assignmentMove constructor