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 和 w...
整理自 C++ Primer, 5th Edition
return
/ Empty argument list
整理自 C++ Primer, 5th Edition & Thinking in C++
range for 就是 java 的 for each loop,C++ 里有三种形式:
整理自 C++ Primer, 5th Edition