1 #ifndef __STL_MODEL_H__
2 #define __STL_MODEL_H__
9 class ModelList : public std::list<_Tp, ModelAlloc<_Tp> >
12 typedef std::list< _Tp, ModelAlloc<_Tp> > list;
18 ModelList(size_t n, const _Tp& val = _Tp()) :
25 template<typename _Tp>
26 class SnapList : public std::list<_Tp, SnapshotAlloc<_Tp> >
29 typedef std::list<_Tp, SnapshotAlloc<_Tp> > list;
35 SnapList(size_t n, const _Tp& val = _Tp()) :
42 template<typename _Tp>
43 class ModelVector : public std::vector<_Tp, ModelAlloc<_Tp> >
46 typedef std::vector< _Tp, ModelAlloc<_Tp> > vector;
52 ModelVector(size_t n, const _Tp& val = _Tp()) :
59 template<typename _Tp>
60 class SnapVector : public std::vector<_Tp, SnapshotAlloc<_Tp> >
63 typedef std::vector< _Tp, SnapshotAlloc<_Tp> > vector;
69 SnapVector(size_t n, const _Tp& val = _Tp()) :
76 #endif /* __STL_MODEL_H__ */