std::allocator_traits<Alloc>::select_on_container_copy_construction
Min standard notice:
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
a: allocator used by a standard container passed as an argument to a container copy constructor
# Return value
The allocator to use by the copy-constructed standard containers.