std::allocator::allocator

allocator();
(1)
allocator( const allocator& other );
(2)
template< class U >
allocator( const allocator<U>& other );
(3)

构造一个默认分配器。因为默认分配器是无状态的,故构造函数无可见效应。

参数

other - 用以构造的另一 allocator

异常

(无) (C++11 前)
noexcept 规定:  
noexcept
  
(C++11 起)

版本历史

  • (当前 | 先前 2017年5月29日 (一) 01:38Fruderica讨论 | 贡献. . (629字节) (-313). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:00P12bot讨论 | 贡献 . . (942字节) (-71). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 17:10P12bot讨论 | 贡献 . . (1,013字节) (+305). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 03:24P12讨论 | 贡献 . . (708字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (708字节) (-15). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 14:09P12讨论 | 贡献 . . (723字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (723字节) (+723). . (Translated from the English version using Google Translate)