Difference between revisions of "cpp/container/vector/get allocator"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
Andreas Krug (Talk | contribs) m (langlinks) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{page | + | {{include page|cpp/container/get_allocator|vector}} |
− | + | {{langlinks|de|es|fr|it|ja|pt|ru|zh}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 11:06, 5 November 2023
allocator_type get_allocator() const; |
(noexcept since C++11) (constexpr since C++20) |
|
Returns the allocator associated with the container.
[edit] Parameters
(none)
[edit] Return value
The associated allocator.
[edit] Complexity
Constant.