Home | History | Annotate | Download | only in base

Lines Matching refs:allocator

34 class Allocator {
36 static Allocator* GetMallocAllocator();
37 static Allocator* GetNoopAllocator();
39 Allocator() {}
40 virtual ~Allocator() {}
46 DISALLOW_COPY_AND_ASSIGN(Allocator);
105 // Tracking allocator for use with STL types, tracks how much memory is used.
107 class TrackingAllocatorImpl : public std::allocator<T> {
109 typedef typename std::allocator<T>::value_type value_type;
110 typedef typename std::allocator<T>::size_type size_type;
111 typedef typename std::allocator<T>::difference_type difference_type;
112 typedef typename std::allocator<T>::pointer pointer;
113 typedef typename std::allocator<T>::const_pointer const_pointer;
114 typedef typename std::allocator<T>::reference reference;
115 typedef typename std::allocator<T>::const_reference const_reference;
127 // Enables an allocator for objects of one type to allocate storage for objects of another type.
154 // TrackingAllocatorImpl<T> if kEnableTrackingAllocator is true, std::allocator<T> otherwise.
157 std::allocator<T>>::type;