Lines Matching refs:allocator
53 explicit List(AllocationPolicy allocator = AllocationPolicy()) {
54 Initialize(0, allocator);
57 AllocationPolicy allocator = AllocationPolicy())) {
58 Initialize(capacity, allocator);
70 AllocationPolicy allocator = AllocationPolicy())) {
71 return allocator.New(static_cast<int>(size));
78 INLINE(void operator delete(void* p, AllocationPolicy allocator)) {
104 void Add(const T& element, AllocationPolicy allocator = AllocationPolicy());
108 AllocationPolicy allocator = AllocationPolicy());
112 AllocationPolicy allocator = AllocationPolicy());
116 AllocationPolicy allocator = AllocationPolicy());
125 AllocationPolicy allocator = AllocationPolicy());
143 AllocationPolicy allocator = AllocationPolicy()));
156 INLINE(void Trim(AllocationPolicy allocator = AllocationPolicy()));
171 AllocationPolicy allocator = AllocationPolicy()));
178 INLINE(T* NewData(int n, AllocationPolicy allocator)) {
179 return static_cast<T*>(allocator.New(n * sizeof(T)));
187 void ResizeAdd(const T& element, AllocationPolicy allocator);
191 void ResizeAddInternal(const T& element, AllocationPolicy allocator);
194 void Resize(int new_capacity, AllocationPolicy allocator);