Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw::containers::internal::VarLenEntryQueueIterator< T > Class Template Reference
Loading...
Searching...
No Matches
pw::containers::internal::VarLenEntryQueueIterator< T > Class Template Reference

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = VarLenEntry< T >
 
using size_type = uint32_t
 
using pointer = const value_type *
 
using reference = const value_type &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

constexpr VarLenEntryQueueIterator (const VarLenEntryQueueIterator &)=default
 
constexpr VarLenEntryQueueIterator & operator= (const VarLenEntryQueueIterator &)=default
 
constexpr VarLenEntryQueueIterator & operator++ ()
 
constexpr VarLenEntryQueueIterator operator++ (int)
 
constexpr reference operator* () const
 
constexpr pointer operator-> () const
 

Friends

template<typename , typename >
class GenericVarLenEntryQueue
 
class VarLenEntryQueueIteratorC
 
constexpr bool operator== (const VarLenEntryQueueIterator &lhs, const VarLenEntryQueueIterator &rhs)
 
constexpr bool operator!= (const VarLenEntryQueueIterator &lhs, const VarLenEntryQueueIterator &rhs)
 

Member Function Documentation

◆ operator*()

template<typename T >
constexpr reference pw::containers::internal::VarLenEntryQueueIterator< T >::operator* ( ) const
inlineconstexpr

Returns the entry pointed to by the iterator.

Returns
The entry.

◆ operator++()

template<typename T >
constexpr VarLenEntryQueueIterator & pw::containers::internal::VarLenEntryQueueIterator< T >::operator++ ( )
inlineconstexpr

Advances the iterator to the next entry in the queue.

Returns
A reference to this iterator after advancing.

Friends And Related Function Documentation

◆ operator==

template<typename T >
constexpr bool operator== ( const VarLenEntryQueueIterator< T > &  lhs,
const VarLenEntryQueueIterator< T > &  rhs 
)
friend

Compares two iterators for equality.

Returns
true if they refer to the same position in the same queue.

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