22 #if !defined(USE_STL_ALLOCATOR) || defined(CPPPARSER)
25 #define plist std::list
35 class plist :
public std::list<Type, pallocator_single<Type> > {
38 typedef std::list<Type, allocator> base_class;
39 typedef typename base_class::size_type size_type;
42 plist(size_type n,
const Type &value,
TypeHandle type_handle = plist_type_handle) : base_class(n, value,
allocator(type_handle)) { }
44 typedef typename base_class::iterator iterator;
45 typedef typename base_class::const_iterator const_iterator;
46 typedef typename base_class::reverse_iterator reverse_iterator;
47 typedef typename base_class::const_reverse_iterator const_reverse_iterator;
51 INLINE
void remove(
const Type &val) {
52 iterator it = this->begin();
53 while (it != this->end()) {
TypeHandle is the identifier used to differentiate C++ class types.
This is our own Panda specialization on the default STL allocator.
This is our own Panda specialization on the default STL list.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.