Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 650 Bytes

File metadata and controls

43 lines (30 loc) · 650 Bytes

コンストラクタ

  • memory[meta header]
  • std[meta namespace]
  • allocator[meta class]
  • function[meta id-type]
allocator() throw();  // (1) C++03
allocator() noexcept; // (2) C++11

allocator(const allocator&) throw();  // (2) C++03
allocator(const allocator&) noexcept; // (2) C++11

template <class U>
allocator(const allocator<U>&) throw();  // (3) C++03

template <class U>
allocator(const allocator<U>&) noexcept; // (3) C++11

概要

allocatorオブジェクトを構築する。

例外

投げない。

#include <memory>

int main()
{
  std::allocator<int> alloc;
}

出力