Lines Matching defs:Mallocator
48 struct Mallocator { struct
49 typedef T value_type;
50 typedef size_t size_type;
51 typedef ptrdiff_t difference_type;
52 typedef T* pointer;
53 typedef const T* const_pointer;
54 typedef T& reference;
55 typedef const T& const_reference;
57 size_type max_size() const { in max_size()
61 struct rebind {
66 Mallocator(const Mallocator<U>&) {} // NOLINT(runtime/explicit) in Mallocator() function
68 T* allocate(size_t n) { return static_cast<T*>(std::malloc(n * sizeof(T))); } in allocate()
69 void deallocate(T* p, size_t) { std::free(p); } in deallocate()