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 ModelVector : public std::vector<_Tp, ModelAlloc<_Tp> >
38 typedef std::vector< _Tp, ModelAlloc<_Tp> > vector;
44 ModelVector(size_t n, const _Tp& val = _Tp()) :
51 #endif/* __STL_MODEL_H__ */