std::basic_string<CharT,Traits,Allocator>::get_allocator (3) - Linux Manuals

std::basic_string<CharT,Traits,Allocator>::get_allocator: std::basic_string<CharT,Traits,Allocator>::get_allocator

NAME

std::basic_string<CharT,Traits,Allocator>::get_allocator - std::basic_string<CharT,Traits,Allocator>::get_allocator

Synopsis


allocator_type get_allocator() const;


Returns the allocator associated with the string.

Parameters


(none)

Return value


the associated allocator

Complexity


Constant

See also


                 the default allocator
allocator (class template)


allocator_traits provides information about allocator types
                 (class template)
(C++11)


uses_allocator checks if the specified type supports uses-allocator construction
                 (class template)
(C++11)