Skip to content

Glossary: C++ Beyond the Basics

Copy assignment

Also written: copy assignment operator

`operator=` taking `const T&`, which copies one object's contents into an existing object. `copy = lines;` runs it.

Where the book teaches it

Related terms

Copy constructorMove assignment