Lvalue assignment: dcpp::shared_device::operator=
The Lvalue assignment operator= of dcpp::shared_device: let the object
reference to underlying device of another object.
Calling Sig:
dcpp::shared_device & operator=(const self_type & other__);
device2 = device1;
-
The reference counter of the device2 held will be decreased by one.
-
device2 will be dereferenced from its old underlying device.
-
device2 will be referenced to new underlying device of device1.
-
The reference counter of device2, device1, and all of the referenced
objects will be increased by one: they share the same underlying device
and same reference counter.
-
If the source underlying device (that the device1 holds) is invalid,
current object will be made invalid.
Up
Duckcpp
cppfx.xyz