23 #ifndef USE_STL_ALLOCATOR 26 #define pvector vector 28 #elif defined(CPPPARSER) 31 class pvector :
public std::vector<Type> {
42 class pvector :
public std::vector<Type, pallocator_array<Type> > {
45 typedef std::vector<Type, allocator> base_class;
46 typedef typename base_class::size_type size_type;
51 explicit pvector(size_type n,
TypeHandle type_handle = pvector_type_handle) : base_class(n, Type(),
allocator(type_handle)) { }
52 explicit pvector(size_type n,
const Type &value,
TypeHandle type_handle = pvector_type_handle) : base_class(n, value,
allocator(type_handle)) { }
53 pvector(
const Type *begin,
const Type *end,
TypeHandle type_handle = pvector_type_handle) : base_class(begin, end,
allocator(type_handle)) { }
56 base_class::operator =(copy);
61 base_class::operator =(std::move(from));
66 #endif // USE_STL_ALLOCATOR
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.