WPILibC++ 2023.4.3-108-ge5452e3
wpi::circular_buffer< T >::iterator Class Reference

#include <wpi/circular_buffer.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = T
 
using difference_type = std::ptrdiff_t
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 iterator (circular_buffer *buffer, size_t index)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &) const =default
 
reference operator* ()
 

Member Typedef Documentation

◆ difference_type

template<class T >
using wpi::circular_buffer< T >::iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<class T >
using wpi::circular_buffer< T >::iterator::iterator_category = std::forward_iterator_tag

◆ pointer

template<class T >
using wpi::circular_buffer< T >::iterator::pointer = T*

◆ reference

template<class T >
using wpi::circular_buffer< T >::iterator::reference = T&

◆ value_type

template<class T >
using wpi::circular_buffer< T >::iterator::value_type = T

Constructor & Destructor Documentation

◆ iterator()

template<class T >
wpi::circular_buffer< T >::iterator::iterator ( circular_buffer buffer,
size_t  index 
)
inline

Member Function Documentation

◆ operator*()

template<class T >
reference wpi::circular_buffer< T >::iterator::operator* ( )
inline

◆ operator++() [1/2]

template<class T >
iterator & wpi::circular_buffer< T >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<class T >
iterator wpi::circular_buffer< T >::iterator::operator++ ( int  )
inline

◆ operator==()

template<class T >
bool wpi::circular_buffer< T >::iterator::operator== ( const iterator ) const
default

The documentation for this class was generated from the following file: