1 //pelican aka sam dennis wrote this
8 template <class T
, class A
= std::allocator
<T
> >
9 class svector
: public std::vector
<T
, A
> {
12 using std::vector
<T
, A
>::begin
;
18 void erase(typename
std::vector
<T
, A
>::size_type i
) {
19 std::vector
<T
, A
> &vec
= *this;
20 vec
.erase(begin() + i
);
22 void insert(typename
std::vector
<T
, A
>::size_type i
, const T
&v
) {
24 std::vector
<T
, A
> &vec
= *this;
25 vec
.insert(begin() + i
, v
);