c_plus_plus_memory

C++ Dynamic memory management

Smart pointers

Smart pointers enable automatic, exception-safe, object lifetime management.

Allocators

Allocators are class templates encapsulating memory allocation strategy. This allows generic containers to decouple memory management from the data itself.

Memory resources

Memory resources implement memory allocation strategies that can be used by

Uninitialized storage

Several utilities are provided to create and access raw storage.

Uninitialized memory algorithms

Constrained uninitialized memory algorithms {{mark c++20}}

C++20 provides constrained uninitialized memory algorithms that accept range arguments or iterator-sentinel pairs.

| specifies some operation on iterators, sentinels and ranges are non-throwing}}

Garbage collector support

Miscellaneous

[[cpp/memory/c|C-style memory management]]

Includes e.g.

,

[[cpp/memory/new | Low level memory management]]

Includes e.g.

,

,

c_plus_plus_memory.txt · Last modified: 2022/03/01 01:00 by 127.0.0.1