Patchouli
帕秋莉的魔法筆記

帕秋莉的魔法筆記

Follow
Series

通往 C++11 的路

簡單介紹從 C++ 到 C++11 之間需要知道的重要事情。

Articles in this series

Way to C++: 6. Exception Safe

May 10, 20201 min read

前言 考慮以下函數: int Calculate(int n) { int *arr1 = new int[n]; int *arr2 = new int[n]; delete[] arr1; delete[] arr2; return...

Way to C++: 6. Exception Safe
Way to C++: 5. Forwarding Reference
Way to C++: 4. Auto close (雜)
Way to C++: 3. std::unique_ptr
Way to C++: 2. Move
Way to C++: 1. Copy Constructor