Your Library
Chapter 6 · Essential OperationsCopying, moving, resource ownership, and conventional interfaces
Contents
Chapter 5Sections 6.1–6.7

Essential Operations

Copying, moving, resource ownership, and conventional interfaces

Constructors, assignment, copying, moving, and destruction determine how objects begin and end their lives. This chapter shows how to design these operations together, when compiler-generated behavior is right, and how move semantics transfers resources efficiently. It also covers conversions, operator conventions, comparisons, and user-defined literals.

In this chapter

  1. 5.1Lesson 6: Essential Operations