WPILibC++ 2023.4.3-108-ge5452e3
wpi::circular_buffer< T >::const_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 const_reference = const T &
 

Public Member Functions

 const_iterator (const circular_buffer *buffer, size_t index)
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
bool operator== (const const_iterator &) const =default
 
const_reference operator* () const
 

Member Typedef Documentation

◆ const_reference

template<class T >
using wpi::circular_buffer< T >::const_iterator::const_reference = const T&

◆ difference_type

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

◆ iterator_category

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

◆ pointer

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

◆ value_type

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

Constructor & Destructor Documentation

◆ const_iterator()

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

Member Function Documentation

◆ operator*()

template<class T >
const_reference wpi::circular_buffer< T >::const_iterator::operator* ( ) const
inline

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator==()

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

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