| ▲ | rurban 12 hours ago | ||||||||||||||||||||||||||||
Should have be called give(). But naming things correctly is hard, and the C++ committee is known to do a lot of things incorrectly | |||||||||||||||||||||||||||||
| ▲ | masklinn 12 hours ago | parent | next [-] | ||||||||||||||||||||||||||||
That has about the same issue: like std::move it doesn't really explain that the receiver decides. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ▲ | pseidemann 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
There is no giving (or taking). I think std::rvalue would be the least confusing name. | |||||||||||||||||||||||||||||
| ▲ | usrnm 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
The name predates the standardisation. The committee did not come with the whole thing themselves, rather they adopted and expanded already existing library implementations. You could move in C++, with this exact name, long before C++11. See, for example, this implementation https://stlab.adobe.com/group__move__related.html | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ▲ | jsphweid 7 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||
std::movable | |||||||||||||||||||||||||||||