C++: move constructor & move assignment operator / lvalue & rvalue / reference qualifier
整理自 C++ Primer, 5th Edition
整理自 C++ Primer, 5th Edition
我们在 C++ Exception Handling / auto_ptr 里介绍了 RAII wrapper for pointers–auto_ptr,然后 C++11 又 deprecated 了……对应的 replacement 是 unique_ptr。顺带还推出了 shared_ptr 和 weak_...
整理自 C++ Primer, 5th Edition