scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
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

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

Friends

class basic_args< Context >
 
class detail::arg_map< Context >
 
template<typename ContextType , typename T >
SCN_CONSTEXPR14
ContextType::arg_type 
detail::make_arg (T &value)
 
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 31 of file args.h.

Member Typedef Documentation

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

Definition at line 295 of file args.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 328 of file args.h.

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

Definition at line 324 of file args.h.

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

Definition at line 315 of file args.h.

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

Definition at line 320 of file args.h.

Friends And Related Function Documentation

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

Definition at line 347 of file args.h.

template<typename Context >
friend class detail::arg_map< Context >
friend

Definition at line 348 of file args.h.

template<typename Context >
template<typename ContextType , 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: