Vector.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994, 1996 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef Vector_INCLUDED
#define Vector_INCLUDED 1
#include <stddef.h>
#include "xnew.h"
// This offers a subset of the interface offered by the standard C++
// vector class as defined in the Jan 96 WP.
// Code in SP currently assumes that size_type is size_t.
#ifdef SP_NAMESPACE
#endif
typedef T *iterator;
typedef const T *const_iterator;
~Vector();
if (n < size_)
else if (n > size_)
}
#ifndef NC
void push_back(const T &t) {
size_++;
}
#endif
#ifdef NC
#endif
T *ptr_;
};
#ifdef SP_NAMESPACE
}
#endif
#endif /* not Vector_INCLUDED */
#ifdef SP_DEFINE_TEMPLATES
#include "Vector.cxx"
#endif