WPILibC++ 2024.3.2
wpi::static_circular_buffer< T, N >::iterator Class Reference

#include <wpi/static_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 (static_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 , size_t N>
using wpi::static_circular_buffer< T, N >::iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<class T , size_t N>
using wpi::static_circular_buffer< T, N >::iterator::iterator_category = std::forward_iterator_tag

◆ pointer

template<class T , size_t N>
using wpi::static_circular_buffer< T, N >::iterator::pointer = T*

◆ reference

template<class T , size_t N>
using wpi::static_circular_buffer< T, N >::iterator::reference = T&

◆ value_type

template<class T , size_t N>
using wpi::static_circular_buffer< T, N >::iterator::value_type = T

Constructor & Destructor Documentation

◆ iterator()

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

Member Function Documentation

◆ operator*()

template<class T , size_t N>
reference wpi::static_circular_buffer< T, N >::iterator::operator* ( )
inline

◆ operator++() [1/2]

template<class T , size_t N>
iterator & wpi::static_circular_buffer< T, N >::iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<class T , size_t N>
iterator wpi::static_circular_buffer< T, N >::iterator::operator++ ( int  )
inline

◆ operator==()

template<class T , size_t N>
bool wpi::static_circular_buffer< T, N >::iterator::operator== ( const iterator ) const
default

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