basic_string::get_allocator

A get_allocator() const;

The member function returns allocator.