4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::parse::position< Ch > Class Template Reference

Detailed Description

template<typename Ch>
class fcppt::parse::position< Ch >

The position of an fcppt::parse::basic_stream.

A position consists of an optional fcppt::parse::location and a position into the stream.

Public Types

using pos_type = typename std::basic_istream<Ch>::pos_type
 
using optional_location = fcppt::optional::object<fcppt::parse::location>
 

Public Member Functions

 position (pos_type, optional_location)
 
pos_type const & pos () const
 
optional_location const & location () const
 

Member Typedef Documentation

◆ optional_location

template<typename Ch >
using fcppt::parse::position< Ch >::optional_location = fcppt::optional::object<fcppt::parse::location>

◆ pos_type

template<typename Ch >
using fcppt::parse::position< Ch >::pos_type = typename std::basic_istream<Ch>::pos_type

Constructor & Destructor Documentation

◆ position()

template<typename Ch >
fcppt::parse::position< Ch >::position ( pos_type ,
optional_location  )

Member Function Documentation

◆ location()

template<typename Ch >
optional_location const & fcppt::parse::position< Ch >::location ( ) const
nodiscard

◆ pos()

template<typename Ch >
pos_type const & fcppt::parse::position< Ch >::pos ( ) const
nodiscard