A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/basic_string::get_allocator below:

public member function

<string>

std::basic_string::get_allocator
allocator_type get_allocator() const;
allocator_type get_allocator() const noexcept;

Get allocator

Returns a copy of the allocator object associated with the basic_string.

Parameters none

Return Value The allocator.

Member type allocator_type is the type of the allocator used by the container, defined in basic_string as an alias of its third template parameter (Alloc).



Complexity Unspecified, but generally constant.

Iterator validity No changes.

Data races The object is accessed.

Exception safetyNo-throw guarantee: this member function never throws exceptions.
Copying any instantiation of the default allocator is also guaranteed to never throw.

See also
allocator
Default allocator (class template)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4