std::scoped_allocator_adaptor::deallocate

定义于头文件 <scoped_allocator>
void deallocate( pointer p, size_type n ) noexcept;
(C++11 起)

用外层分配器解分配 p 所引用的存储,通过调用 std::allocator_traits<OuterAlloc>::deallocate(outer_allocator(), p, n)

参数

p - 指向先前分配的内存的指针
n - 分配内存所用的对象数

返回值

(无)

参阅

解分配存储
(std::allocator 的公开成员函数)
[静态]
用分配器解分配存储
(std::allocator_traits 的公开静态成员函数)

版本历史

  • (当前 | 先前 2017年6月4日 (日) 21:02Fruderica讨论 | 贡献. . (740字节) (-729). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:05P12bot讨论 | 贡献 . . (1,469字节) (-122). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:29P12bot讨论 | 贡献 . . (1,591字节) (+433). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 03:39P12讨论 | 贡献 . . (1,158字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (1,158字节) (-50). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 14:54P12讨论 | 贡献 . . (1,208字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,208字节) (+1,208). . (Translated from the English version using Google Translate)