...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Construct a copy of a different allocator wrapper type.
template< typename U, typename OtherAllocator> allocator_binder( const allocator_binder< U, OtherAllocator > & other, constraint_t< is_constructible< Allocator, OtherAllocator >::value > = 0, constraint_t< is_constructible< T, U >::value > = 0);
This constructor is only valid if the Allocator
type is constructible from type OtherAllocator
,
and the type T
is constructible
from type U
.