• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    class
    <memory>

    std::allocator_arg_t

    namespace std {
      struct allocator_arg_t {};                                        // (1) C++11
      struct allocator_arg_t { explicit allocator_arg_t() = default; }; // (1) C++17
    
      constexpr allocator_arg_t allocator_arg = allocator_arg_t();      // (2) C++11
      inline constexpr allocator_arg_t allocator_arg{};                 // (2) C++17
    }
    

    概要

    allocator_arg_tは、実装を持たない空のクラスである。

    このクラスは、コンストラクタや関数のオーバーロードを行う際に一意な型として使用される。tuplepromisefunctionなどのコンストラクタではこのクラスを第一引数として第二引数以降にアロケータを設定している。

    allocator_arg_t型の変数allocator_argが定義されている。

    バージョン

    言語

    • C++11

    処理系

    関連項目