Lines Matching refs:T
102 template <typename T> class SwapAllocator;
132 template <typename T>
135 typedef T value_type;
136 typedef T* pointer;
137 typedef T& reference;
138 typedef const T* const_pointer;
139 typedef const T& const_reference;
158 return static_cast<size_type>(-1) / sizeof(T); in max_size()
167 return reinterpret_cast<T*>(malloc(n * sizeof(T)));
169 return reinterpret_cast<T*>(swap_space_->Alloc(n * sizeof(T)));
176 swap_space_->Free(p, n * sizeof(T)); in deallocate()
205 template <typename T>
206 using SwapVector = std::vector<T, SwapAllocator<T>>;
207 template <typename T, typename Comparator>
208 using SwapSet = std::set<T, Comparator, SwapAllocator<T>>;