copy initialization

copy initialization

Initializes an object from another object.

Syntax

T object = other; (1)
T object = {other} ; (2) (until C++11)
f(other) (3)
return other; (4)