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 std::operator!= const vector< Type, Alloc > &  x,
const vector< Type, Alloc > &  y
[inline]
 

Based on operator==.

Definition at line 904 of file stl_vector.h.

template<typename Type, typename Alloc>
bool std::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 lexicographically 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::lexicographical_compare() for how the determination is made.

Definition at line 895 of file stl_vector.h.

References std::lexicographical_compare().

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

Based on operator<.

Definition at line 916 of file stl_vector.h.

template<typename Type, typename Alloc>
bool std::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 876 of file stl_vector.h.

References std::vector< Type, Alloc >::begin(), std::vector< Type, Alloc >::end(), std::equal(), and std::vector< Type, Alloc >::size().

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

Based on operator<.

Definition at line 910 of file stl_vector.h.

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

Based on operator<.

Definition at line 922 of file stl_vector.h.

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

See std::vector::swap().

Definition at line 928 of file stl_vector.h.

References std::vector< Type, Alloc >::swap().


Generated on Fri May 6 01:11:53 2005 for libstdc++-v3 Source by  doxygen 1.4.2