Lines Matching refs:T
78 template <typename T>
81 typedef T value_type;
82 typedef T* pointer;
83 typedef const T* const_pointer;
84 typedef T& reference;
85 typedef const T& const_reference;
89 T* allocate(size_t n, const T* hint = nullptr) {
90 size_t size = n * sizeof(T);
91 void* ptr = mmap(const_cast<T*>(hint), size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
101 return reinterpret_cast<T*>(ptr);
104 void deallocate(T* ptr, size_t n) { in deallocate()
105 munmap(ptr, n * sizeof(T)); in deallocate()