Difference between revisions of "cpp/container/vector/get allocator"
From cppreference.com
m (Add link to edit the included template) |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 1: | Line 1: | ||
{{page template|cpp/container/get_allocator|vector}} | {{page template|cpp/container/get_allocator|vector}} | ||
+ | |||
+ | [[de:cpp/container/vector/get allocator]] | ||
+ | [[es:cpp/container/vector/get allocator]] | ||
+ | [[fr:cpp/container/vector/get allocator]] | ||
+ | [[it:cpp/container/vector/get allocator]] | ||
+ | [[ja:cpp/container/vector/get allocator]] | ||
+ | [[pt:cpp/container/vector/get allocator]] | ||
+ | [[ru:cpp/container/vector/get allocator]] | ||
+ | [[zh:cpp/container/vector/get allocator]] |
Revision as of 16:34, 2 November 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.