共用方式為


<memory> Members

Reference

Functions

checked_uninitialized_copy

Same as uninitialized_copy but enforces the use of a checked iterator as output iterator.

checked_uninitialized_fill_n

Same as uninitialized_fill_n but enforces the use of a checked iterator as output iterator.

get_temporary_buffer

Allocates temporary storage for a sequence of elements that does not exceed a specified number of elements.

return_temporary_buffer

Deallocates the temporary memory that was allocated using the get_temporary_buffer template function.

unchecked_uninitialized_copy

Same as uninitialized_copy but allows the use of an unchecked iterator as output iterator when _SECURE_SCL=1 is defined.

unchecked_uninitialized_fill_n

Same as uninitialized_fill_n but allows the use of an unchecked iterator as output iterator when _SECURE_SCL=1 is defined.

uninitialized_copy

Copies objects from a specified input range into an uninitialized destination range.

uninitialized_fill

Copies objects of a specified value into an uninitialized destination range.

uninitialized_fill_n

Copies objects of a specified value into specified number of elements an uninitialized destination range.

Operators

operator!=

Tests for inequality between allocator objects of a specified class.

operator==

Tests for equality between allocator objects of a specified class.

Classes

allocator Class

The template class describes an object that manages storage allocation and freeing for arrays of objects of type Type.

auto_ptr Class

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.

raw_storage_iterator Class

An adaptor class that is provided to enable algorithms to store their results into uninitialized memory.

Specializations

allocator<void> Class

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

Concepts

<memory>

Thread Safety in the Standard C++ Library