scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
scn::options Struct Reference

#include <options.h>

Classes

struct  builder
 

Public Member Functions

SCN_CONSTEXPR options () noexcept=default
 
SCN_CONSTEXPR options (builder b) noexcept
 
template<typename CharT >
basic_locale_ref< CharT > get_locale_ref () const noexcept
 
template<typename T >
SCN_CONSTEXPR auto get_method_for () const noexcept-> typename std::enable_if< std::is_integral< T >::value, method >::type
 
template<typename T >
SCN_CONSTEXPR auto get_method_for () const noexcept-> typename std::enable_if< std::is_floating_point< T >::value, method >::type
 

Public Attributes

const void * locale {nullptr}
 
method int_method {SCN_DEFAULT_INT_SCANNING_METHOD}
 
method float_method {SCN_DEFAULT_FLOAT_SCANNING_METHOD}
 

Detailed Description

Definition at line 87 of file options.h.

Constructor & Destructor Documentation

SCN_CONSTEXPR scn::options::options ( )
defaultnoexcept
SCN_CONSTEXPR scn::options::options ( options::builder  b)
inlinenoexcept

Definition at line 152 of file options.h.

Member Function Documentation

template<typename CharT >
basic_locale_ref<CharT> scn::options::get_locale_ref ( ) const
inlinenoexcept

Definition at line 94 of file options.h.

template<typename T >
SCN_CONSTEXPR auto scn::options::get_method_for ( ) const -> typename std::enable_if<std::is_integral<T>::value, method>::type
inlinenoexcept

Definition at line 105 of file options.h.

template<typename T >
SCN_CONSTEXPR auto scn::options::get_method_for ( ) const -> typename std::enable_if<std::is_floating_point<T>::value, method>::type
inlinenoexcept

Definition at line 111 of file options.h.

Member Data Documentation

method scn::options::float_method {SCN_DEFAULT_FLOAT_SCANNING_METHOD}

Definition at line 121 of file options.h.

method scn::options::int_method {SCN_DEFAULT_INT_SCANNING_METHOD}

Definition at line 120 of file options.h.

const void* scn::options::locale {nullptr}

Definition at line 119 of file options.h.


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