Lines Matching refs:allocator
31 class Allocator {
33 static Allocator* GetMallocAllocator();
34 static Allocator* GetNoopAllocator();
36 Allocator() {}
37 virtual ~Allocator() {}
43 DISALLOW_COPY_AND_ASSIGN(Allocator);
92 // Tracking allocator, tracks how much memory is used.
94 class TrackingAllocatorImpl : public std::allocator<T> {
96 typedef typename std::allocator<T>::value_type value_type;
97 typedef typename std::allocator<T>::size_type size_type;
98 typedef typename std::allocator<T>::difference_type difference_type;
99 typedef typename std::allocator<T>::pointer pointer;
100 typedef typename std::allocator<T>::const_pointer const_pointer;
101 typedef typename std::allocator<T>::reference reference;
102 typedef typename std::allocator<T>::const_reference const_reference;
114 // Enables an allocator for objects of one type to allocate storage for objects of another type.
141 // TrackingAllocatorImpl<T> if kEnableTrackingAllocator is true, std::allocator<T> otherwise.
144 std::allocator<T>>::type {