Namespaces
Variants
Views
Actions

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

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

Latest revision as of 07:24, 13 November 2021

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

Returns the allocator associated with the container.

[edit] Parameters

(none)

[edit] Return value

The associated allocator.

[edit] Complexity

Constant.