stl_vector.h File Reference

#include <bits/stl_iterator_base_funcs.h>
#include <bits/functexcept.h>
#include <bits/concept_check.h>

Include dependency graph for stl_vector.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  std

Functions

template<typename Type, typename Alloc>
bool operator== (const vector< Type, Alloc > &x, const vector< Type, Alloc > &y)
 Vector equality comparison.
template<typename Type, typename Alloc>
bool operator< (const vector< Type, Alloc > &x, const vector< Type, Alloc > &y)
 Vector ordering relation.
template<typename Type, typename Alloc>
bool operator!= (const vector< Type, Alloc > &x, const vector< Type, Alloc > &y)
 Based on operator==.
template<typename Type, typename Alloc>
bool operator> (const vector< Type, Alloc > &x, const vector< Type, Alloc > &y)
 Based on operator<.
template<typename Type, typename Alloc>
bool operator<= (const vector< Type, Alloc > &x, const vector< Type, Alloc > &y)
 Based on operator<.
template<typename Type, typename Alloc>
bool operator>= (const vector< Type, Alloc > &x, const vector< Type, Alloc > &y)
 Based on operator<.
template<typename Type, typename Alloc>
void swap (vector< Type, Alloc > &x, vector< Type, Alloc > &y)
 See std::vector::swap().


Detailed Description

This is an internal header file, included by other library headers. You should not attempt to use it directly.

Definition in file stl_vector.h.


Function Documentation

template<typename Type, typename Alloc>
bool operator!= const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Based on operator==.

Definition at line 964 of file stl_vector.h.

template<typename Type, typename Alloc>
bool operator< const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Vector ordering relation.

Parameters:
x A vector.
y A vector of the same type as x.
Returns:
True iff x is lexographically less than y.
This is a total ordering relation. It is linear in the size of the vectors. The elements must be comparable with <.

See std::lexographical_compare() for how the determination is made.

Definition at line 955 of file stl_vector.h.

References std::lexicographical_compare().

template<typename Type, typename Alloc>
bool operator<= const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Based on operator<.

Definition at line 976 of file stl_vector.h.

template<typename Type, typename Alloc>
bool operator== const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Vector equality comparison.

Parameters:
x A vector.
y A vector of the same type as x.
Returns:
True iff the size and elements of the vectors are equal.
This is an equivalence relation. It is linear in the size of the vectors. Vectors are considered equivalent if their sizes are equal, and if corresponding elements compare equal.

Definition at line 936 of file stl_vector.h.

References std::equal().

template<typename Type, typename Alloc>
bool operator> const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Based on operator<.

Definition at line 970 of file stl_vector.h.

template<typename Type, typename Alloc>
bool operator>= const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Based on operator<.

Definition at line 982 of file stl_vector.h.

template<typename Type, typename Alloc>
void swap vector< Type, Alloc > &  x,
vector< Type, Alloc > &  y
[inline]
 

See std::vector::swap().

Definition at line 988 of file stl_vector.h.


Generated on Thu Feb 10 23:23:39 2005 for libstdc++-v3 Source by  doxygen 1.4.0