Lines Matching refs:T
65 template <typename T>
68 typedef T value_type;
69 typedef T* pointer;
70 typedef const T* const_pointer;
71 typedef T& reference;
72 typedef const T& const_reference;
76 T* allocate(size_t n, const T* hint = nullptr) {
77 size_t size = n * sizeof(T);
78 void* ptr = mmap(const_cast<T*>(hint), size,
88 return reinterpret_cast<T*>(ptr);
91 void deallocate(T* ptr, size_t n) { in deallocate()
92 munmap(ptr, n * sizeof(T)); in deallocate()