This documentation is archived and is not being maintained.
<vector>
Visual Studio 2010
Defines the container template class vector and several supporting templates.
The vector is a container that organizes elements of a given type in a linear sequence. It enables fast random access to any element, and dynamic additions and removals to and from the sequence. The vector is the preferred container for a sequence when random-access performance is at a premium.
For more details about the members of this header, see <vector> Members. For more information about the class vector, see vector Class. For information about the specialization vector<bool>, see 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
Show: