4 ms·
Moves in C++ are a function call that can do whatever any other function call can. The type itself can have additional guarantees and the standard library types
by account42 4y ago
Moves in C++ are a function call that can do whatever any other function call can. The type itself can have additional guarantees and the standard library types generally do. In the case of std::unique_ptr the guarantee is explicit that the moved-from unique_ptr is nulled.