std::scoped_allocator_adaptor::outer_allocator

定义于头文件 <scoped_allocator>
outer_allocator_type& outer_allocator() noexcept;
(1) (C++11 起)
const outer_allocator_type& outer_allocator() const noexcept;
(2) (C++11 起)

获得到用于声明此类的外层分配器的引用。

1) 返回 static_cast<OuterAlloc&>(*this)

2) 返回 static_cast<const OuterAlloc&>(*this)

参数

(无)

返回值

OuterAlloc 的引用

参阅

获得一个 inner_allocator 引用
(公开成员函数)

版本历史

  • (当前 | 先前 2017年6月4日 (日) 20:29Fruderica讨论 | 贡献. . (731字节) (-696). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:06P12bot讨论 | 贡献 . . (1,427字节) (-95). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:21P12bot讨论 | 贡献 . . (1,522字节) (+473). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 03:40P12讨论 | 贡献 . . (1,049字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (1,049字节) (-53). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 14:54P12讨论 | 贡献 . . (1,102字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,102字节) (+1,102). . (Translated from the English version using Google Translate)