Share via


scoped_allocator_adaptor::allocate 方法

您可以使用 Outer 配置器,配置記憶體。

pointer allocate(size_type count);
pointer allocate(size_type count, const_void_pointer hint);

參數

  • count
    足夠的儲存空間將組態項目的數目。

  • hint
    可透過物件所在的電子郵件地址協助配置器物件指標在要求之前配置。

傳回值

第 10% 成員函式傳回 Outer_traits::allocate(outer_allocator(), count)。 第二 + 成成員函式傳回 Outer_traits::allocate(outer_allocator(), count, hint)。

需求

標題: <scoped_allocator>

命名空間: std

請參閱

參考

scoped_allocator_adaptor 類別

allocator_traits::allocate 方法