From cppreference.com
allocator_typeget_allocator()constnoexcept;Returns a copy of the allocator that was passed in as the constructor argument or replaced through the assignment operator.
Parameters
(none)
Example
See also