Skip to content

BitInputArchive_ConstIterator

Oz edited this page Sep 25, 2024 · 4 revisions

An iterator for the elements contained in an archive.

#include <bit7z/bitinputarchive.hpp>

List of all members

Public Members

Return type Name
bool operator!=( const ConstIterator& other ) const noexcept
reference operator*() const noexcept
ConstIterator & operator++() noexcept
ConstIterator operator++( int ) noexcept
pointer operator->() const noexcept
bool operator==( const ConstIterator& other ) const noexcept

Member Function Documentation

bool operator!=( const ConstIterator& other ) const noexcept

Compares the iterator with another iterator.

Parameters:

  • other: Another iterator.

Returns whether the two iterators point to the different elements in the archive or not.


reference operator*() const noexcept

Accesses the pointed-to element in the archive.

Returns a reference to the pointed-to element in the archive.


ConstIterator & operator++() noexcept

Advances the iterator to the next element in the archive.

Returns the iterator pointing to the next element in the archive.


ConstIterator operator++( int ) noexcept

Advances the iterator to the next element in the archive.

Returns the iterator before the advancement.


pointer operator->() const noexcept

Accesses the pointed-to element in the archive.

Returns a pointer to the pointed-to element in the archive.


bool operator==( const ConstIterator& other ) const noexcept

Compares the iterator with another iterator.

Parameters:

  • other: Another iterator.

Returns whether the two iterators point to the same element in the archive or not.


Clone this wiki locally