scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::basic_arg< Context > Class Template Reference

Type-erased scanning argument. More...

#include <args.h>

Classes

class  handle
 

Public Types

using char_type = typename Context::char_type
 

Public Member Functions

constexpr basic_arg ()=default
 
constexpr operator bool () const noexcept
 
constexpr detail::type type () const noexcept
 
constexpr bool is_integral () const noexcept
 
constexpr bool is_arithmetic () const noexcept
 

Friends

class basic_args< Context >
 
template<typename ContextType , typename ParseCtx , typename T >
SCN_CONSTEXPR14
ContextType::arg_type 
detail::make_arg (T &value) noexcept
 
template<typename Ctx , typename Visitor >
SCN_CONSTEXPR14 error visit_arg (Visitor &&vis, typename Ctx::arg_type &arg)
 

Detailed Description

template<typename Context>
class scn::basic_arg< Context >

Type-erased scanning argument.

Definition at line 30 of file args.h.

Member Typedef Documentation

template<typename Context >
using scn::basic_arg< Context >::char_type = typename Context::char_type

Definition at line 290 of file args.h.

Constructor & Destructor Documentation

template<typename Context >
constexpr scn::basic_arg< Context >::basic_arg ( )
default

Member Function Documentation

template<typename Context >
constexpr bool scn::basic_arg< Context >::is_arithmetic ( ) const
inlinenoexcept

Definition at line 325 of file args.h.

template<typename Context >
constexpr bool scn::basic_arg< Context >::is_integral ( ) const
inlinenoexcept

Definition at line 321 of file args.h.

template<typename Context >
constexpr scn::basic_arg< Context >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 312 of file args.h.

template<typename Context >
constexpr detail::type scn::basic_arg< Context >::type ( ) const
inlinenoexcept

Definition at line 317 of file args.h.

Friends And Related Function Documentation

template<typename Context >
friend class basic_args< Context >
friend

Definition at line 344 of file args.h.

template<typename Context >
template<typename ContextType , typename ParseCtx , typename T >
SCN_CONSTEXPR14 ContextType::arg_type detail::make_arg ( T &  value)
friend
template<typename Context >
template<typename Ctx , typename Visitor >
SCN_CONSTEXPR14 error visit_arg ( Visitor &&  vis,
typename Ctx::arg_type &  arg 
)
friend

The documentation for this class was generated from the following file: