Skip to content

move

The move keyword is an operator used to transfer ownership of the smart pointers: unique and shared.

Syntax

move(ptr);

Example Code

var T unique* var unique_ptr = move(ex);
var T shared* var shared_ptr = move(ex);