Lines Matching refs:const_iterator
73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> {
75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr);
77 const_iterator& operator++();
79 const_iterator operator++(int);
81 bool operator==(const const_iterator& rhs);
83 bool operator!=(const const_iterator& rhs);
137 const_iterator begin() const;
142 const_iterator end() const;
221 RingBuffer<T>::const_iterator::const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) : in const_iterator() function
225 typename RingBuffer<T>::const_iterator& RingBuffer<T>::const_iterator::operator++() {
238 typename RingBuffer<T>::const_iterator RingBuffer<T>::const_iterator::operator++(int) {
239 const_iterator tmp{mPtr, mSize, mPos, mCtr};
245 bool RingBuffer<T>::const_iterator::operator==(const const_iterator& rhs) {
250 bool RingBuffer<T>::const_iterator::operator!=(const const_iterator& rhs) {
255 const T& RingBuffer<T>::const_iterator::operator*() {
260 const T* RingBuffer<T>::const_iterator::operator->() {
316 typename RingBuffer<T>::const_iterator RingBuffer<T>::begin() const { in begin()
318 return const_iterator(mBuffer.data(), mBuffer.size(), in begin()
323 typename RingBuffer<T>::const_iterator RingBuffer<T>::end() const { in end()
325 return const_iterator(mBuffer.data(), s, s, s); in end()