Lines Matching defs:Mallocator
215 struct Mallocator { struct
216 typedef T value_type;
217 typedef size_t size_type;
218 typedef ptrdiff_t difference_type;
219 typedef T* pointer;
220 typedef const T* const_pointer;
221 typedef T& reference;
222 typedef const T& const_reference;
224 size_type max_size() const { in max_size()
228 struct rebind {
233 Mallocator(const Mallocator<U>&) {} // NOLINT(runtime/explicit) in Mallocator() argument
235 T* allocate(size_t n) { return static_cast<T*>(std::malloc(n * sizeof(T))); } in allocate()
236 void deallocate(T* p, size_t) { std::free(p); } in deallocate()