A RetroSearch Logo

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

Search Query:

Showing content from http://en.cppreference.com/w/cpp/memory/allocator_traits/select_on_container_copy_construction.html below:

std::allocator_traits<Alloc>::select_on_container_copy_construction - cppreference.com

static Alloc select_on_container_copy_construction( const Alloc& a );

(since C++11)
(constexpr since C++20)

If possible, obtains the copy-constructed version of the allocator a, by calling a.select_on_container_copy_construction(). If the above is not possible (e.g. Alloc does not have the member function select_on_container_copy_construction()), then returns a, unmodified.

This function is called by the copy constructors of all standard library containers. It allows the allocator used by the constructor's argument to become aware that the container is being copied and modify state if necessary.

[edit] Parameters a - allocator used by a standard container passed as an argument to a container copy constructor [edit] Return value

The allocator to use by the copy-constructed standard containers.

[edit] See also

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