std::forward_list<T,Allocator>::get_allocator
From cppreference.com
< cpp | container | forward list
C++
Containers library
Sequence | ||||
(C++11) | ||||
(C++11) | ||||
Associative | ||||
Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Adaptors | ||||
Views | ||||
(C++20) |
std::forward_list
Member functions | ||||
forward_list::get_allocator | ||||
Element access | ||||
Iterators | ||||
Capacity | ||||
Modifiers | ||||
Operations | ||||
Non-member functions | ||||
(C++20)(C++20) | ||||
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20) | ||||
Deduction guides(C++17) |
allocator_type get_allocator() const noexcept; |
(since C++11) | |
Returns the allocator associated with the container.
Parameters
(none)
Return value
The associated allocator.
Complexity
Constant.