Smart pointers enable automatic, exception-safe, object lifetime management.
Pointer categories smart pointer with unique object ownership semantics(deprecated in C++11)(removed in C++17)
smart pointer with strict object ownership semanticsshared_ptr
referring to itself
weak_ptr
which refers to already destroyed object
out_ptr_t
with an associated smart pointer and resetting arguments
inout_ptr_t
with an associated smart pointer and resetting arguments
Allocators are class templates encapsulating memory allocation strategy. This allows generic containers to decouple memory management from the data itself.
[edit] Memory resources (since C++17)Memory resources implement memory allocation strategies that can be used by std::pmr::polymorphic_allocator.
[edit] Uninitialized memory algorithms [edit] Constrained uninitialized memory algorithms (since C++20)C++20 provides constrained uninitialized memory algorithms that accept range arguments or iterator-sentinel pairs.
[edit] Explicit lifetime management (since C++23) [edit] Types for composite class design (since C++26) a wrapper containing dynamically-allocated object with value-like semantics&
operator is overloaded
Includes e.g. operator new, operator delete, std::set_new_handler.
[edit] C-style memory managementIncludes e.g. std::malloc, std::free.
[edit] Uninitialized storage (until C++20)Several utilities are provided to create and access raw storage.
(deprecated in C++17)(removed in C++20)
an iterator that allows standard algorithms to store results in uninitialized memory(deprecated in C++17)(removed in C++20)
obtains uninitialized storage(deprecated in C++17)(removed in C++20)
frees uninitialized storageRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4