共用方式為


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 類別