Lines Matching refs:T
42 template <class T>
55 void Enqueue(T* new_item);
60 T* EnqueueWithPop(T* new_item);
64 T* Dequeue();
85 std::queue<std::unique_ptr<T>> queue_;
94 template <class T>
95 LeakyBondedQueue<T>::LeakyBondedQueue(size_t capacity) { in LeakyBondedQueue()
99 template <class T>
100 LeakyBondedQueue<T>::~LeakyBondedQueue() {} in ~LeakyBondedQueue()
102 template <class T>
103 void LeakyBondedQueue<T>::Enqueue(T* new_item) { in Enqueue()
108 std::unique_ptr<T> item_ptr(new_item); in Enqueue()
112 template <class T>
113 T* LeakyBondedQueue<T>::EnqueueWithPop(T* new_item) { in EnqueueWithPop()
115 T* old_item = nullptr; in EnqueueWithPop()
117 std::unique_ptr<T> item = std::move(queue_.front()); in EnqueueWithPop()
121 std::unique_ptr<T> item_ptr(new_item); in EnqueueWithPop()
126 template <class T>
127 T* LeakyBondedQueue<T>::Dequeue() { in Dequeue()
129 std::unique_ptr<T> item = std::move(queue_.front()); in Dequeue()
134 template <class T>
135 void LeakyBondedQueue<T>::Clear() { in Clear()
143 template <class T>
144 size_t LeakyBondedQueue<T>::Length() { in Length()
149 template <class T>
150 size_t LeakyBondedQueue<T>::Capacity() { in Capacity()
154 template <class T>
155 bool LeakyBondedQueue<T>::Empty() { in Empty()