Lines Matching refs:T
42 template <typename T>
45 template <typename T>
46 using ScopedArenaDeque = std::deque<T, ScopedArenaAllocatorAdapter<T>>;
48 template <typename T>
49 using ScopedArenaQueue = std::queue<T, ScopedArenaDeque<T>>;
51 template <typename T>
52 using ScopedArenaVector = dchecked_vector<T, ScopedArenaAllocatorAdapter<T>>;
54 template <typename T, typename Comparator = std::less<T>>
55 using ScopedArenaPriorityQueue = std::priority_queue<T, ScopedArenaVector<T>, Comparator>;
57 template <typename T>
58 using ScopedArenaStdStack = std::stack<T, ScopedArenaDeque<T>>;
60 template <typename T, typename Comparator = std::less<T>>
61 using ScopedArenaSet = std::set<T, Comparator, ScopedArenaAllocatorAdapter<T>>;
67 template <typename T,
68 typename EmptyFn = DefaultEmptyFn<T>,
69 typename HashFn = DefaultHashFn<T>,
70 typename Pred = DefaultPred<T>>
71 using ScopedArenaHashSet = HashSet<T, EmptyFn, HashFn, Pred, ScopedArenaAllocatorAdapter<T>>;
138 template <typename T>
143 typedef T value_type;
144 typedef T* pointer;
145 typedef T& reference;
146 typedef const T* const_pointer;
147 typedef const T& const_reference;
175 return static_cast<size_type>(-1) / sizeof(T); in max_size()
185 return reinterpret_cast<T*>(arena_stack_->Alloc(n * sizeof(T),
190 arena_stack_->MakeInaccessible(p, sizeof(T) * n); in deallocate()
215 template <typename T>
216 inline bool operator==(const ScopedArenaAllocatorAdapter<T>& lhs,
217 const ScopedArenaAllocatorAdapter<T>& rhs) {
221 template <typename T>
222 inline bool operator!=(const ScopedArenaAllocatorAdapter<T>& lhs,
223 const ScopedArenaAllocatorAdapter<T>& rhs) {
232 template <typename T>
238 ALWAYS_INLINE void ProtectMemory(T* ptr, size_t size) const { in ProtectMemory()
254 void operator()(T* ptr) const { in operator()
256 ptr->~T(); in operator()
257 ProtectMemory(ptr, sizeof(T)); in operator()
267 template <typename T>
268 class ArenaDelete<T[]> {
270 void operator()(T* ptr ATTRIBUTE_UNUSED) const { in operator()
271 static_assert(std::is_trivially_destructible<T>::value, in operator()
278 template <typename T>
279 using ArenaUniquePtr = std::unique_ptr<T, ArenaDelete<T>>;