home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_05
/
1105082c
< prev
next >
Wrap
Text File
|
1993-03-01
|
447b
|
23 lines
// fv1.cpp - a dynamic vector of float (with a possibly
// non-zero low-bound) using a subscripting object
// implemented by inheritance from float_array
#include "fv1.h"
#include <assert.h>
float float_vector::operator[](int i) const
{
assert(i >= low());
return float_array::operator[](i - low());
}
fa_index float_vector::operator[](int i)
{
assert(i >= low());
return float_array::operator[](i - low());
}