std::allocator_traits<Alloc>::select_on_container_copy_construction

Header: <memory>

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.

# Declarations

static Alloc select_on_container_copy_construction( const Alloc& a );

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

# Parameters

# Return value

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

# See also