次の方法で共有


hash_set::allocator_type

[!メモ]

この API は、互換性のために残されています。代わりに unordered_set クラスです。

hash_setのオブジェクトのアロケーター クラスを表す型。

typedef list<typename Traits::value_type, typename Traits::allocator_type>::allocator_type allocator_type;

解説

allocator_type Allocatorは、テンプレート パラメーターのシノニムです。

Allocatorの詳細については、hash_set Class のトピックの"解説"を参照してください。

Visual C++ .NET 2003では、<hash_map><hash_set> ヘッダー ファイルのメンバーはstdの名前空間に存在しなくなりましたが、ではなくstdextの名前空間に型。詳細については、「The stdext Namespace」を参照してください。

使用例

allocator_typeの使用例に get_allocator の例を参照してください。

必要条件

ヘッダー: <hash_set>

名前空間: のstdext

参照

関連項目

hash_set Class

標準テンプレート ライブラリ