one dimensional dynamic array
Vector is a resizable one-dimensional array with constant-time random access and range checking. The template type T must have a default constructor, a copy constructor, and an assignment operator.Vector<T> is publically derived from std::vector<T>. Read the friendly STL manual.
Arguments:
size (not modified): number of elements of Vector to construct.
This:
-------The object is modified----------
Arguments:
size (not modified): number of elements of Vector to construct.
value (not modified): value to set every element to.
This:
-------The object is modified----------
Arguments:
n (not modified) index of desired element.
Returns:
modifiable reference to value in Vector at index n.
This:
-----
This object is modified if the returned reference is assigned a new value
-----
Arguments:
n (not modified) index of desired element.
Returns:
constant reference to value in Vector at index n.
This:
This object is not modified.
Arguments:
invec (not modified): Vector whose elements to append to this Vector.
This:
-------The object is modified----------
This software is copyright (C) by the Lawrence Berkeley National Laboratory. Permission is granted to reproduce this software for non-commercial purposes provided that this notice is left intact.
It is acknowledged that the U.S. Government has rights to this software under Contract DE-AC03-765F00098 between the U.S. Department of Energy and the University of California.
This software is provided as a professional and academic contribution for joint exchange. Thus it is experimental, is provided ``as is'', with no warranties of any kind whatsoever, no support, no promise of updates, or printed documentation. By using this software, you acknowledge that the Lawrence Berkeley National Laboratory and Regents of the University of California shall have no liability with respect to the infringement of other copyrights by any part of this software.