cplusplus
.com
教程
參考
文章
論壇
C++
教程
參考
文章
論壇
參考
C 庫
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
C++11
<cfenv> (fenv.h)
<cfloat> (float.h)
C++11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
C++11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
C++11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
C++11
<ctgmath> (tgmath.h)
<ctime> (time.h)
C++11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
容器
C++11
<array>
<deque>
C++11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
C++11
<unordered_map>
C++11
<unordered_set>
<vector>
輸入/輸出
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
多執行緒
C++11
<atomic>
C++11
<condition_variable>
C++11
<future>
C++11
<mutex>
C++11
<thread>
其他
<algorithm>
<bitset>
C++11
<chrono>
C++11
<codecvt>
<complex>
<exception>
<functional>
C++11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
C++11
<random>
C++11
<ratio>
C++11
<regex>
<stdexcept>
<string>
C++11
<system_error>
C++11
<tuple>
C++11
<type_traits>
C++11
<typeindex>
<typeinfo>
<utility>
<valarray>
<memory>
類
allocator
C++11
allocator_arg_t
C++11
allocator_traits
auto_ptr
auto_ptr_ref
C++11
bad_weak_ptr
C++11
default_delete
C++11
enable_shared_from_this
C++11
owner_less
C++11
pointer_traits
raw_storage_iterator
C++11
shared_ptr
C++11
unique_ptr
C++11
uses_allocator
C++11
weak_ptr
列舉類
C++11
pointer_safety
函式
C++11
addressof
C++11
align
C++11
allocate_shared
C++11
const_pointer_cast
C++11
declare_no_pointers
C++11
declare_reachable
C++11
dynamic_pointer_cast
C++11
get_deleter
C++11
get_pointer_safety
get_temporary_buffer
C++11
make_shared
return_temporary_buffer
C++11
static_pointer_cast
C++11
undeclare_no_pointers
C++11
undeclare_reachable
uninitialized_copy
C++11
uninitialized_copy_n
uninitialized_fill
uninitialized_fill_n
物件
C++11
allocator_arg
參考
<memory>
標頭檔案
<memory>
記憶體元素
該標頭檔案定義了管理動態記憶體的通用工具
分配器
allocator
預設分配器
(類模板)
allocator_arg
分配器引數
(物件)
allocator_arg_t
分配器引數型別
(類)
allocator_traits
分配器特性
(類模板)
託管指標
auto_ptr
自動指標 [已棄用]
(類模板)
auto_ptr_ref
對自動指標的引用
(類模板)
shared_ptr
共享指標
(類模板)
weak_ptr
弱共享指標
(類模板)
unique_ptr
唯一指標
(類模板)
default_delete
預設刪除器
(類模板)
相關的函式和類
shared_ptr
:
make_shared
建立 shared_ptr
(函式模板)
allocate_shared
分配 shared_ptr
(函式模板)
static_pointer_cast
shared_ptr 的靜態轉換
(函式模板)
dynamic_pointer_cast
shared_ptr 的動態轉換
(函式模板)
const_pointer_cast
shared_ptr 的 const 轉換
(函式模板)
get_deleter
從 shared_ptr 獲取刪除器
(函式模板)
owner_less
基於所有權的“小於”操作
(類模板)
enable_shared_from_this
啟用 shared_from_this
(類模板)
未初始化記憶體
原始儲存迭代器
:
raw_storage_iterator
原始儲存迭代器
(類模板)
臨時緩衝區
:
get_temporary_buffer
獲取臨時記憶體塊
(函式模板)
return_temporary_buffer
返回臨時記憶體塊
(函式模板)
專用演算法
:
uninitialized_copy
複製記憶體塊
(函式模板)
uninitialized_copy_n
複製記憶體塊
(函式模板)
uninitialized_fill
填充記憶體塊
(函式模板)
uninitialized_fill_n
填充記憶體塊
(函式模板)
記憶體模型
pointer_traits
指標特性
(類模板)
pointer_safety
指標安全列舉
(列舉類)
declare_reachable
將指標宣告為可達
(函式)
undeclare_reachable
取消指標的可達宣告
(函式模板)
declare_no_pointers
宣告記憶體塊不包含指標
(函式)
undeclare_no_pointers
取消記憶體塊不含指標的宣告
(函式)
get_pointer_safety
獲取指標安全級別
(函式)
align
在範圍內對齊
(函式)
addressof
物件或函式的地址
(函式模板)