C++11: rvalue, rvalue reference, std::move, std::forward
C++11
rvalue
rvalue reference
std::move
std::forward
Move semantics allows an object, under certain conditions, to take ownership of other object's external (heap) resources. This helps turning expensive copies into cheap moves.
C++11: auto_ptr, unique_ptr, shared_ptr, weak_ptr
unique_ptr
shared_ptr
weak_ptr
Smart pointers can do virtually everything raw pointers can, but with far fewer opportunities for error.
Algorithm C++ Raspberry Pi Life Tips
© 2018 HttpException.com