libcosmos
Linux C++ System Programming Library
Loading...
Searching...
No Matches
cosmos::TwiceIterator Class Reference

Public Member Functions

auto & operator++ ()
 
Twice operator* ()
 
bool operator== (const TwiceIterator o) const
 
bool operator!= (const TwiceIterator o) const
 

Public Attributes

size_t m_iterations = 0
 

Detailed Description

Definition at line 175 of file utils.hxx.

Member Function Documentation

◆ operator!=()

bool cosmos::TwiceIterator::operator!= ( const TwiceIterator o) const
inline

Definition at line 191 of file utils.hxx.

191 {
192 return !(*this == o);
193 }

◆ operator*()

Twice cosmos::TwiceIterator::operator* ( )
inline

Definition at line 183 of file utils.hxx.

183 {
184 return Twice{};
185 }

◆ operator++()

auto & cosmos::TwiceIterator::operator++ ( )
inline

Definition at line 178 of file utils.hxx.

178 {
179 m_iterations++;
180 return *this;
181 }

◆ operator==()

bool cosmos::TwiceIterator::operator== ( const TwiceIterator o) const
inline

Definition at line 187 of file utils.hxx.

187 {
188 return m_iterations == o.m_iterations;
189 }

Member Data Documentation

◆ m_iterations

size_t cosmos::TwiceIterator::m_iterations = 0

Definition at line 196 of file utils.hxx.


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