Skip to main content

std::vector get_allocator() method

// prism-push-types:allocator_type
// Const version only
constexpr allocator_type get_allocator() const noexcept;

Returns the allocator associated with the container.

Parameters

(none)

Return value

The associated allocator.

Complexity

Constant - O(1).

This article originates from this CppReference page. It was likely altered for improvements or editors' preference. Click "Edit this page" to see all changes made to this document.
Hover to see the original license.

std::vector get_allocator() method

// prism-push-types:allocator_type
// Const version only
constexpr allocator_type get_allocator() const noexcept;

Returns the allocator associated with the container.

Parameters

(none)

Return value

The associated allocator.

Complexity

Constant - O(1).

This article originates from this CppReference page. It was likely altered for improvements or editors' preference. Click "Edit this page" to see all changes made to this document.
Hover to see the original license.