xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::io::InputStream< Element >::ReadPosition Class Reference

A class used to remember positions with the stream. More...

#include <xentara/utils/io/InputStream.hpp>

Public Member Functions

 ReadPosition ()=default
 Default constructor.
 
auto operator== (const ReadPosition &) const -> bool=default
 Comparison operator.
 
auto operator<=> (const ReadPosition &) const -> auto=default
 Three-way comparison operator.
 

Detailed Description

template<StreamElement Element>
class xentara::utils::io::InputStream< Element >::ReadPosition

A class used to remember positions with the stream.

Constructor & Destructor Documentation

◆ ReadPosition()

template<StreamElement Element>
xentara::utils::io::InputStream< Element >::ReadPosition::ReadPosition ( )
default

Default constructor.

This constructor constructs a position that lies at the beginning of the stream

Member Function Documentation

◆ operator<=>()

template<StreamElement Element>
auto xentara::utils::io::InputStream< Element >::ReadPosition::operator<=> ( const ReadPosition ) const -> auto=default
default

Three-way comparison operator.

◆ operator==()

template<StreamElement Element>
auto xentara::utils::io::InputStream< Element >::ReadPosition::operator== ( const ReadPosition ) const -> bool=default
default

Comparison operator.