Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/vector/get allocator"

From cppreference.com
< cpp‎ | container‎ | vector
m (1 revision: import content)
m (Add link to edit the included template)
Line 1: Line 1:
{{cpp/container/get_allocator|vector}}
+
{{page template|cpp/container/get_allocator|vector}}

Revision as of 09:42, 14 October 2012

 
 
 
 
allocator_type get_allocator() const;
(noexcept since C++11)
(constexpr since C++20)

Returns the allocator associated with the container.

Parameters

(none)

Return value

The associated allocator.

Complexity

Constant.