次の方法で共有


<vector>

コンテナーのテンプレート クラスのベクトルとサポートのいくつかのテンプレートを定義します。

vectorは、リニア シーケンス内の特定の種類の要素を編成するコンテナーです。すべての要素とダイナミックの追加と削除するには、シーケンスからの高速ランダム アクセス有効にします。vectorランダム アクセス パフォーマンスが不足しているときに一連の優先コンテナーです。

クラスの詳細についてはvectorを参照してくださいvector Class。については、特殊化されたvector<bool>を参照してくださいvector<bool> Class

namespace std {
template<class Type, class Allocator>
    class vector;
template<class Allocator>
    class vector<bool>;

template<class Allocator>
    struct hash<vector<bool, Allocator> >;

        // TEMPLATE FUNCTIONS
template<class Type, class Allocator>
    bool operator== (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator!= (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator< (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator> (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator<= (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator>= (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    void swap (
        vector< Type, Allocator>& _Left,
        vector< Type, Allocator>& _Right
    );
}  // namespace std

パラメーター

  • 種類
    テンプレート パラメーターのベクターに保存されているデータの種類。

  • アロケーター
    テンプレートのパラメーターに格納されているアロケーター オブジェクトのメモリの割り当てと割り当て解除を行います。

  • _Left
    最初の (左) ベクターでは、比較操作

  • _Right
    比較操作で 2 番目 (右側) ベクター。

sxcsf7y7.collapse_all(ja-jp,VS.110).gif演算子

演算子 (!)=

ベクター オブジェクトは、演算子の左側にあるは右側のベクトル オブジェクトと等しくない場合をテストします。

演算子 <

ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にあるより小さい場合テストします。

演算子 < =

テストの場合は、演算子の左側に、ベクターをオブジェクトの右側にある、ベクトル オブジェクトと同じかそれより小さいです。

演算子 = =

ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にあるに等しい場合テストします。

演算子 >

ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にあるよりも大きい場合をテストします。

演算子 > =

ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にある以上の場合をテストします。

sxcsf7y7.collapse_all(ja-jp,VS.110).gifClasses

ベクター クラス

線形の配置で、指定した型の要素を配置し、任意の要素の高速ランダム アクセスを許可するシーケンス コンテナーのテンプレート クラス。

sxcsf7y7.collapse_all(ja-jp,VS.110).gif特殊化

<bool> ベクトルします。 クラス

テンプレート クラスのベクトルの要素の型の完全な特殊化をboolは、特殊化で使用される、基になる型のアロケーターを使用します。

必要条件

ヘッダー: <vector>

名前空間: std

参照

関連項目

C++ の標準ライブラリのスレッド セーフ

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

その他の技術情報

<vector> メンバー

ヘッダー ファイル