Dynamic memory management

来自cppreference.com
< cpp

 
 
实用工具库
类型的支持 (basic types, RTTI, type traits)
动态内存管理
错误处理
程序实用工具
可变参数函数
日期和时间
函数对象
initializer_list(C++11)
bitset
hash(C++11)
关系运算符
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
双和元组
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
掉期,远期和移动
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
动态内存管理
低级别的内存管理
分配器
Original:
Allocators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
allocator
allocator_traits(C++11)
allocator_arg_t(C++11)
allocator_arg(C++11)
uses_allocator(C++11)
scoped_allocator_adaptor(C++11)
未初始化的存储空间
Original:
Uninitialized storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uninitialized_copy
uninitialized_copy_n(C++11)
uninitialized_fill
uninitialized_fill_n
raw_storage_iterator
get_temporary_buffer
return_temporary_buffer
智能指针
Original:
Smart pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unique_ptr(C++11)
shared_ptr(C++11)
weak_ptr(C++11)
auto_ptr(过时了)
owner_less(C++11)
enable_shared_from_this(C++11)
bad_weak_ptr(C++11)
default_delete(C++11)
垃圾收集的支持
Original:
Garbage collection support
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
declare_reachable(C++11)
undeclare_reachable(C++11)
declare_no_pointers(C++11)
undeclare_no_pointers(C++11)
pointer_safety(C++11)
get_pointer_safety(C++11)
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pointer_traits(C++11)
addressof(C++11)
align(C++11)
C库
Original:
C Library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 

目录

[编辑] 智能指针

启用了自动,智能指针异常安全的,对象的生命周期管理.
Original:
Smart pointers enable automatic, exception-safe, object lifetime management.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <memory>
指针类
Original:
Pointer categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
拥有唯一的对象语义的智能指针
Original:
smart pointer with unique object ownership semantics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
(C++11)
smart pointer with shared object ownership semantics
(类模板) [edit]
(C++11)
std::shared_ptr管理对象的弱引用
Original:
weak reference to an object managed by std::shared_ptr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
(过时了)
严格的对象的所有权语义的智能指针
Original:
smart pointer with strict object ownership semantics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
Helper类
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
混合型业主的共享和弱指针的顺序
Original:
provides mixed-type owner-based ordering of shared and weak pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
允许一个对象来创建一个shared_ptr指本身
Original:
allows an object to create a shared_ptr referring to itself
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
(C++11)
访问weak_ptr它指的是已经销毁的对象时抛出的异常
Original:
exception thrown when accessing a weak_ptr which refers to already destroyed object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类) [edit]
(C++11)
unique_ptr默认的删除
Original:
default deleter for unique_ptr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]

[编辑] 分配器

分配器是类模板封装的内存分配策略。这使得通用的容器,去耦内存管理从数据本身.
Original:
Allocators are class templates encapsulating memory allocation strategy. This allows generic containers to decouple memory management from the data itself.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <memory>
the default allocator
(类模板) [edit]
提供分配器类型的信息
Original:
provides information about allocator types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
(C++11)
使用的标签类型选择分配器感知的构造函数重载
Original:
tag type used to select allocator-aware constructor overloads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类) [edit]
(C++11)
一个对象的类型std::allocator_arg_t用来选择分配器感知的构造函数
Original:
an object of type std::allocator_arg_t used to select allocator-aware constructors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(不变) [edit]
(C++11)
检查如果指定的类型支持使用分配器建设的
Original:
checks if the specified type supports uses-allocator construction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
Defined in header <scoped_allocator>
实现多级的多级容器分配器
Original:
implements multi-level allocator for multi-level containers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]

[编辑] 未初始化的存储空间

一些实用程序提供创建和访问原始数据存储
Original:
Several utilities are provided to create and access raw storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <memory>
一个未初始化的内存区域复制的对象范围
Original:
copies a range of objects to an uninitialized area of memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
复制的对象的数量的未初始化区域的内存
Original:
copies a number of objects to an uninitialized area of memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
一个对象复制到一个未初始化的内存区域
Original:
copies an object to an uninitialized area of memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
一个对象复制到一个未初始化的内存区域
Original:
copies an object to an uninitialized area of memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
一个迭代器,允许标准算法,将结果存储在未初始化的内存
Original:
an iterator that allows standard algorithms to store results in uninitialized memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
获得未初始化的存储
Original:
obtains uninitialized storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
释放未初始化的存储
Original:
frees uninitialized storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]

[编辑] 垃圾收集器的支持

Defined in header <memory>
宣布,一个对象不能被回收
Original:
declares that an object can not be recycled
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
宣布,一个对象可以回收利用
Original:
declares that an object can be recycled
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
声明的内存区域不包含可追踪的指针
Original:
declares that a memory area does not contain traceable pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
取消的std::declare_no_pointers效果
Original:
cancels the effect of std::declare_no_pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
(C++11)
列出指针安全模式
Original:
lists pointer safety models
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类) [edit]
返回当前指针安全模型
Original:
returns the current pointer safety model
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]

[编辑] 杂项

Defined in header <memory>
(C++11)
提供有关类似指针的类型的信息
Original:
provides information about pointer-like types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板) [edit]
(C++11)
获得的对象的实际地址,即使在“&”运算符被重载
Original:
obtains actual address of an object, even if the & operator is overloaded
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
(C++11)
对齐的指针在缓冲器中
Original:
aligns a pointer in a buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]

[编辑] C-风格的内存管理

包括如std::mallocstd::free
Original:
Includes e.g. std::malloc, std::free
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 低级别的内存管理

包括如operator new operator delete std::set_new_handler
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.