std::forward_list<T,Allocator>::get_allocator (3) - Linux Manuals

std::forward_list<T,Allocator>::get_allocator: std::forward_list<T,Allocator>::get_allocator

NAME

std::forward_list<T,Allocator>::get_allocator - std::forward_list<T,Allocator>::get_allocator

Synopsis


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


Returns the allocator associated with the container.

Parameters


(none)

Return value


The associated allocator.

Complexity


Constant.