共用方式為


allocator_newdel 類別

實作配置器,該配置器會使用 運算子 delete 來解除分配記憶體區塊,以及 配置記憶體區塊的 new 運算子。

語法

template <class Type>
class allocator_newdel;

參數

類型
配置器所配置的元素類型。

備註

ALLOCATOR_DECL巨集會將這個類別傳遞為下列語句中的 name 參數:ALLOCATOR_DECL(CACHE_FREELIST stdext::allocators::max_none), SYNC_DEFAULT, allocator_newdel);

需求

Header:<allocators>

命名空間: stdext

另請參閱

<allocators>