A RetroSearch Logo

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

Search Query:

Showing content from https://www.tutorialspoint.com/cpp_standard_library/cpp_string_get_allocator.htm below:

C++ String Allocator

C++ String Library - get_allocator Description

It returns a copy of the allocator object associated with the string.

Declaration

Following is the declaration for std::string::get_allocator.

allocator_type get_allocator() const;
C++11
allocator_type get_allocator() const noexcept;
C++14
allocator_type get_allocator() const noexcept;
Parameters

none

Return Value

It returns a copy of the allocator object associated with the string.

Exceptions

if an exception is thrown, there are no changes in the string.

string.htm


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