1 /* Copyright (c) 2015 Regents of the University of California
3 * Author: Brian Demsky <bdemsky@uci.edu>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
10 #ifndef __STL_MODEL_H__
11 #define __STL_MODEL_H__
17 template<typename _Tp>
18 class ModelList : public std::list<_Tp, ModelAlloc<_Tp> >
21 typedef std::list< _Tp, ModelAlloc<_Tp> > list;
27 ModelList(size_t n, const _Tp& val = _Tp()) :
34 template<typename _Tp>
35 class SnapList : public std::list<_Tp, SnapshotAlloc<_Tp> >
38 typedef std::list<_Tp, SnapshotAlloc<_Tp> > list;
44 SnapList(size_t n, const _Tp& val = _Tp()) :
51 template<typename _Tp>
52 class ModelVector : public std::vector<_Tp, ModelAlloc<_Tp> >
55 typedef std::vector< _Tp, ModelAlloc<_Tp> > vector;
61 ModelVector(size_t n, const _Tp& val = _Tp()) :
68 template<typename _Tp>
69 class SnapVector : public std::vector<_Tp, SnapshotAlloc<_Tp> >
72 typedef std::vector< _Tp, SnapshotAlloc<_Tp> > vector;
78 SnapVector(size_t n, const _Tp& val = _Tp()) :
85 #endif /* __STL_MODEL_H__ */