cpp / latest / io / basic_stringbuf / get_allocator.html /

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

allocator_type get_allocator() const noexcept;
(since C++20)

Returns the allocator associated with the internal sequence container.

Parameters

(none).

Return value

the associated allocator.

See also

returns the associated allocator
(public member function of std::basic_string<CharT,Traits,Allocator>)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/basic_stringbuf/get_allocator