PrevUpHomeNext

Rvalue assignment: dcpp::shared_device::operator=


Rvalue assignment operator= of dcpp::shared_device: move underlying device of temporary object to current object.

Calling Sig:

dcpp::shared_device & operator=(const self_type && other__);
device2 = <temporary object expression>;

Rvalue assignment operator= of dcpp::shared_device will move the underlying device of the <temporary object expression> to device2, the reference counter that the <temporary object expression> stands for will be set to zero, and the reference counter of device2 will be set to one.

Note

Rvalue assignment is experimental, it is not allowed at the first time,
Then it is added, removed, and added again.
Rvalue assignment should be used carefuly in a video driver that does not well support multithreading programming.
I might remove it again if a more well reason is found in the future.

Back

Up

c++

Duckcpp

cppfx.xyz


PrevUpHomeNext