<memory>
Defines a class, an operator, and several templates that help allocate and free objects.
#include <memory>
Members
Functions
Gets the true address of an object. |
|
Returns a pointer to a range of a given size, based on the provided alignment and starting address. |
|
Creates a shared_ptr to objects that are allocated and constructed for a given type with a specified allocator. |
|
Same as uninitialized_copy but enforces the use of a checked iterator as output iterator. |
|
Same as uninitialized_fill_n but enforces the use of a checked iterator as output iterator. |
|
Const cast to shared_ptr. |
|
Informs a garbage collector that the characters starting at a specified address and falling within the indicated block size contain no traceable pointers. |
|
Informs garbage collection that the indicated address is to allocated storage and is reachable. |
|
Deletes objects allocated with operator new. Suitable for use with unique_ptr. |
|
Dynamic cast to shared_ptr. |
|
Get deleter from shared_ptr. |
|
Returns the type of pointer safety assumed by any garbage collector. |
|
Allocates temporary storage for a sequence of elements that does not exceed a specified number of elements. |
|
Creates and returns a shared_ptr that points to the allocated object constructed from zero or more arguments using the default allocator. |
|
Creates and returns a unique_ptr that points to the allocated object constructed from zero or more arguments. |
|
Allows ownership-based mixed comparisons of shared and weak pointers. |
|
An enumeration of all the possible return values for get_pointer_safety. |
|
Deallocates the temporary memory that was allocated using the get_temporary_buffer template function. |
|
Static cast to shared_ptr. |
|
Swap two shared_ptr or weak_ptr objects. |
|
Same as uninitialized_copy but allows the use of an unchecked iterator as output iterator when _SECURE_SCL=1 is defined. |
|
Same as uninitialized_fill_n but allows the use of an unchecked iterator as output iterator when _SECURE_SCL=1 is defined. |
|
Informs a garbage collector that the characters in the memory block defined by a base address pointer and block size may now contain traceable pointers. |
|
Informs a garbage_collector that a specified memory location is not reachable. |
|
Copies objects from a specified input range into an uninitialized destination range. |
|
Creates a copy of a specified number of elements from an input iterator. The copies are put in a forward iterator. |
|
Copies objects of a specified value into an uninitialized destination range. |
|
Copies objects of a specified value into specified number of elements an uninitialized destination range. |
Operators
Tests for inequality between allocator objects of a specified class. |
|
Tests for equality between allocator objects of a specified class. |
|
Tests for one allocator object being greater than or equal to a second allocator object, of a specified class. |
|
Tests for one object being less than a second object of a specified class. |
|
Tests for one object being less than or equal to a second object of a specified class. |
|
Tests for one object being greater than a second object of a specified class. |
|
shared_ptr inserter. |
Classes
The template class describes an object that manages storage allocation and freeing for arrays of objects of type Type. |
|
Describes an object that determines all the information that is needed by an allocator-enabled container. |
|
The template class describes an object that stores a pointer to an allocated object of type Type * that ensures the object to which it points gets deleted when its enclosing auto_ptr gets destroyed. |
|
Reports bad weak_ptr exception. |
|
Helps generate a shared_ptr. |
|
Supplies information that is needed by an object of template class allocator_traits to describe an allocator with pointer type Ptr. |
|
An adaptor class that is provided to enable algorithms to store their results into uninitialized memory. |
|
Wraps a reference-counted smart pointer around a dynamically allocated object. |
|
Stores a pointer to an owned object. The pointer is owned by no other unique_ptr. The unique_ptr is destroyed when the owner is destroyed. |
|
Wraps a weakly linked pointer. |
Specializations
A specialization of the template class allocator to type void, defining the only the member types that make sense in this specialized context. |
See Also
Reference
Thread Safety in the C++ Standard Library