Returns a copy of the allocator object associated with the container.
Parameters
none
Return Value
The allocator.
Member type allocator_type is the type of the allocator used by the container, defined in forward_list as an alias of its second template parameter (Alloc).
Complexity
Constant.
Iterator validity
No changes.
Data races
The container is accessed.
No contained elements are accessed: concurrently accessing or modifying them is safe.
Exception safety
No-throw guarantee: this member function never throws exceptions.
Copying any instantiation of the default allocator is also guaranteed to never throw.