Skip to content

BitInputArchive_ConstIterator

Oz edited this page May 19, 2024 · 3 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

auto operator!=( const ConstIterator& other ) const noexcept -> bool

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.


auto operator*() const noexcept -> reference

Accesses the pointed-to element in the archive.

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


auto operator++() noexcept -> ConstIterator&

Advances the iterator to the next element in the archive.

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


auto operator++( int ) noexcept -> ConstIterator

Advances the iterator to the next element in the archive.

Returns the iterator before the advancement.


auto operator->() const noexcept -> pointer

Accesses the pointed-to element in the archive.

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


auto operator==( const ConstIterator& other ) const noexcept -> bool

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