pick up CXXFLAGS passed on commandline
[rofl0r-df-libgraphics.git] / g_src / svector.h
blob3d9e81a7934b2c796113f138a4e9bc37f980eff7
1 //pelican aka sam dennis wrote this
2 #ifndef SVECTOR_H
3 #define SVECTOR_H
5 #include <vector>
6 #include <memory>
8 template <class T, class A = std::allocator<T> >
9 class svector : public std::vector<T, A> {
10 #ifndef WIN32
11 public:
12 using std::vector<T, A>::begin;
13 #endif
15 #ifdef WIN32
16 public:
17 #endif
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);
28 #endif