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_unordered_get_allocator.htm below:

C++ Unordered Map Get Allocator

C++ Unordered_set Library - get_allocator Previous Quiz Next Description

It returns the allocator object used to construct the container.

Declaration

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

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

none

Return value

It returns the allocator.

Exceptions

Exception is thrown if any element comparison object throws exception.

Please note that invalid arguments cause undefined behavior.

Time complexity

constant time.

unordered_set.htm

Print Page

Previous

Next

Advertisements


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