Lines Matching defs:item
97 * Adds item to the front of this RingBuffer. If the RingBuffer is at its maximum length,
103 void add(const T& item);
106 * Moves item to the front of this RingBuffer. Following a call to this, item should no
112 void add(T&& item);
115 * Construct item in-place in the front of this RingBuffer using the given arguments. If
265 void RingBuffer<T>::add(const T& item) {
267 mBuffer.push_back(item);
272 mBuffer[mFrontIdx] = item;
277 void RingBuffer<T>::add(T&& item) {
279 mBuffer.push_back(std::forward<T>(item));
285 mBuffer[mFrontIdx] = std::forward<T>(item);