WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
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

constexpr iterator (static_circular_buffer *buffer, size_t index)
 
constexpr iteratoroperator++ ()
 
constexpr iterator operator++ (int)
 
constexpr bool operator== (const iterator &) const =default
 
constexpr 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 )
inlineconstexpr

Member Function Documentation

◆ operator*()

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

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator==()

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

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