there are some CppCon videos about this on youtube
meaning you don’t know?
means there are a lot to explain
one example can be this std::vector<largeObject> fun(); auto x = fun(); would you like to move the object or copy it ?
Yeah But what exactly does moving do that contribute to the efficient memory-use in the operation
are you familiar with lifetime of objects ?
Yeah, because the vector allocates new memory internally
Have you heard of move semantics ?
Not really What’s that about?
it's about passing the ownership
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2027.html
Обсуждают сегодня