Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | container‎ | vector
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh)
m (Shorten template names. Use {{lc}} where appropriate.)
Line 1: Line 1:
{{page template|cpp/container/get_allocator|vector}}
+
{{include page|cpp/container/get_allocator|vector}}
  
 
[[de:cpp/container/vector/get allocator]]
 
[[de:cpp/container/vector/get allocator]]

Revision as of 19:40, 31 May 2013

 
 
 
 
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.