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

Detailed Description

template<typename Type>
class fcppt::parse::int_< Type >

Parses signed integers.

A signed integer string optionally starts with the symbol '-'. It is then followed by a nonempty sequence of fcppt::parse::digits. The string is converted into a signed integer using fcppt::extract_from_string.

Template Parameters
TypeMust be a signed integer type.
Inheritance diagram for fcppt::parse::int_< Type >:
fcppt::parse::tag

Public Types

using result_type = Type
 

Public Member Functions

 int_ ()
 
template<typename Ch , typename Skipper >
fcppt::parse::result< Ch, result_typeparse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const
 

Member Typedef Documentation

◆ result_type

template<typename Type >
using fcppt::parse::int_< Type >::result_type = Type

Constructor & Destructor Documentation

◆ int_()

template<typename Type >
fcppt::parse::int_< Type >::int_ ( )

Member Function Documentation

◆ parse()

template<typename Type >
template<typename Ch , typename Skipper >
fcppt::parse::result< Ch, result_type > fcppt::parse::int_< Type >::parse ( fcppt::reference< fcppt::parse::basic_stream< Ch > > ,
Skipper const &  ) const
nodiscard