std::scoped_allocator_adaptor::inner_allocator

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

获得到用于声明此 scoped_allocator_adaptor 的内层分配器的引用。

sizeof...(InnerAllocs) == 0 ,即未声明内层分配器,则返回 *this 。否则返回到 std::scoped_allocator_adaptor<InnerAllocs...> 的一个引用,即由 *this 的所有内层分配器组成的有作用域分配器,其首个内层分配器变为外层分配器。

参数

(无)

返回值

到内层分配器的引用,它自身是 std::scoped_allocator_adaptor

参阅

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

版本历史

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