C++
C#
VB
JScript
All

Class Vector


Copyright (C) 2005 IENT-RWTH Aachen

Class that represents one-dimentional arrays

Subclasses

Array

Groups

Constructors
Method Vector

Builds an instance of the object

Assignment
Method operator=

Assignment Operator

Operators
Method operator[]

Element access

Operations
Method back

Last element access

Method begin

Iterator that points at the first element

Method end

Iterator that points just beyond the last element

Method front

First element access

Method lower_bound

Lowest valid position

Method nelms

Number of elements, same result than size

Method rbegin

Reverse iterator that points at the last element

Method rend

Reverse iterator that points just before the first element

Method resize

Changes the size

Method set_lower_bound

Changes the lowest valid position

Method size

Number of elements

Method swap

Swap the contents

Method upper_bound

Greatest valid position

Method withinbounds

Tests the validity of the position

Example

template<class G>
typename Vector<G>::size_type size(const Vector<G> &X)
{
  return X.size();
}