共用方式為


scoped_allocator_adaptor::rebind 結構

定義 Outer::rebind<Other>::other 型別為 **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;

   };

需求

標題: <scoped_allocator>

命名空間: std

請參閱

參考

scoped_allocator_adaptor 類別