Home | History | Annotate | Download | only in base

Lines Matching refs:allocator

29 class Allocator {
31 static Allocator* GetMallocAllocator();
32 static Allocator* GetNoopAllocator();
34 Allocator() {}
35 virtual ~Allocator() {}
41 DISALLOW_COPY_AND_ASSIGN(Allocator);
100 // Tracking allocator for use with STL types, tracks how much memory is used.
102 class TrackingAllocatorImpl : public std::allocator<T> {
104 typedef typename std::allocator<T>::value_type value_type;
105 typedef typename std::allocator<T>::size_type size_type;
106 typedef typename std::allocator<T>::difference_type difference_type;
107 typedef typename std::allocator<T>::pointer pointer;
108 typedef typename std::allocator<T>::const_pointer const_pointer;
109 typedef typename std::allocator<T>::reference reference;
110 typedef typename std::allocator<T>::const_reference const_reference;
122 // Enables an allocator for objects of one type to allocate storage for objects of another type.
149 // TrackingAllocatorImpl<T> if kEnableTrackingAllocator is true, std::allocator<T> otherwise.
152 std::allocator<T>>::type;