共用方式為


scoped_allocator_adaptor::rebind Struct

Defines the type Outer::rebind<Other>::other as a synonym for scoped_allocator_adaptor<Other, Inner...>.

template<class Other>
   struct rebind{
      typedef Other_traits::rebind<Other> Other_alloc;
      typedef scoped_allocator_adaptor<Other_alloc, Inner...> other;

   };

Requirements

Header: <scoped_allocator>

Namespace: std

See Also

Reference

scoped_allocator_adaptor Class