<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 番目 (右側) ベクター。
演算子
ベクター オブジェクトは、演算子の左側にあるは右側のベクトル オブジェクトと等しくない場合をテストします。 |
|
ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にあるより小さい場合テストします。 |
|
テストの場合は、演算子の左側に、ベクターをオブジェクトの右側にある、ベクトル オブジェクトと同じかそれより小さいです。 |
|
ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にあるに等しい場合テストします。 |
|
ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にあるよりも大きい場合をテストします。 |
|
ベクター オブジェクトは、演算子の左側にある、ベクトル オブジェクトの右側にある以上の場合をテストします。 |
Classes
線形の配置で、指定した型の要素を配置し、任意の要素の高速ランダム アクセスを許可するシーケンス コンテナーのテンプレート クラス。 |
特殊化
テンプレート クラスのベクトルの要素の型の完全な特殊化をboolは、特殊化で使用される、基になる型のアロケーターを使用します。 |
必要条件
ヘッダー: <vector>
名前空間: std