A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../memory.html below:

Memory management library - cppreference.com

Memory management library [edit] Smart pointers (since C++11)

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

Pointer categories smart pointer with unique object ownership semantics
(class template) [edit] smart pointer with shared object ownership semantics
(class template) [edit] weak reference to an object managed by std::shared_ptr
(class template) [edit]

(deprecated in C++11)(removed in C++17)

smart pointer with strict object ownership semantics
(class template) [edit] Helper classes provides mixed-type owner-based ordering of shared and weak pointers
(class template) [edit] provides owner-based hashing for shared and weak pointers
(class) [edit] provides mixed-type owner-based equal comparisons of shared and weak pointers
(class) [edit] allows an object to create a shared_ptr referring to itself
(class template) [edit] exception thrown when accessing a weak_ptr which refers to already destroyed object
(class) [edit] default deleter for unique_ptr
(class template) [edit] Smart pointer adaptors (since C++23) interoperates with foreign pointer setters and resets a smart pointer on destruction
(class template) [edit] creates an out_ptr_t with an associated smart pointer and resetting arguments
(function template) [edit] interoperates with foreign pointer setters, obtains the initial pointer value from a smart pointer, and resets it on destruction
(class template) [edit] creates an inout_ptr_t with an associated smart pointer and resetting arguments
(function template) [edit] [edit] Allocators

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
(class template) [edit] a polymorphic wrapper containing dynamically-allocated object with value-like semantics
(class template) [edit] [edit] Miscellaneous provides information about pointer-like types
(class template) [edit] obtains a raw pointer from a pointer-like type
(function template) [edit] obtains actual address of an object, even if the & operator is overloaded
(function template) [edit] aligns a pointer in a buffer
(function) [edit] informs the compiler that a pointer is aligned
(function template) [edit] checks whether the pointer points to an object whose alignment has at least the given value
(function template) [edit] [edit] Low level memory management

Includes e.g. operator new, operator delete, std::set_new_handler.

[edit] C-style memory management

Includes 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
(class template) [edit]

(deprecated in C++17)(removed in C++20)

obtains uninitialized storage
(function template) [edit]

(deprecated in C++17)(removed in C++20)

frees uninitialized storage
(function template) [edit] [edit] Garbage collector support (until C++23)

RetroSearch 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