Comment by fooker
18 hours ago
Maybe std::make_movable would have been a slightly better name, but it's so much simpler to write std::move.
18 hours ago
Maybe std::make_movable would have been a slightly better name, but it's so much simpler to write std::move.
Split the difference with std::moveable().
Also signals it doesn't actually move, while remaining just as fast to type.
std::movable is a concept now!
https://en.cppreference.com/w/cpp/concepts/movable.html
But that misses too much of the semantics. It also implies ownership transfer, even if copied.
thanks to the incredible advances in terms of developer tooling over the last 50 years (i.e. tab-autocompletion) there should be no difference in writing those two.
There is a difference, lots of stuff starts with make_, so lots of possible completions.
std::rvalue