◐ Shell
clean mode source ↗

Specialized <memory> algorithms - cppreference.com

From cppreference.com

In the algorithm library, some function templates construct and destroy objects in uninitialized memory buffers. They are declared and defined in <memory>.

Helper templates

Object (batch) construction

Defined in header <memory>

creates an object at a given address
(function template & algorithm function object)[edit]
copies a range of objects to an uninitialized area of memory
(function template & algorithm function object)[edit]
copies a number of objects to an uninitialized area of memory
(function template & algorithm function object)[edit]
copies an object to an uninitialized area of memory, defined by a range
(function template & algorithm function object)[edit]
copies an object to an uninitialized area of memory, defined by a start and a count
(function template & algorithm function object)[edit]
moves a range of objects to an uninitialized area of memory
(function template & algorithm function object)[edit]
moves a number of objects to an uninitialized area of memory
(function template & algorithm function object)[edit]
constructs objects by default-initialization in an uninitialized area of memory, defined by a range
(function template & algorithm function object)[edit]
constructs objects by default-initialization in an uninitialized area of memory, defined by a start and a count
(function template & algorithm function object)[edit]
constructs objects by value-initialization in an uninitialized area of memory, defined by a range
(function template & algorithm function object)[edit]
constructs objects by value-initialization in an uninitialized area of memory, defined by a start and a count
(function template & algorithm function object)[edit]

Object (batch) destruction

Defined in header <memory>

destroys an object at a given address
(function template & algorithm function object)[edit]

(C++17)

destroys a range of objects
(function template & algorithm function object)[edit]

(C++17)

destroys a number of objects in a range
(function template & algorithm function object)[edit]