args 6.4.16
A simple single-header C++11 STL-only argument parser library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
args::ValueReader Struct Reference

A default Reader class for argument classes. More...

#include <args.hxx>

Public Member Functions

template<typename T >
std::enable_if< std::is_integral< T >::value &&!std::is_same< T, bool >::value &&!std::is_same< T, char >::value &&!std::is_same< T, signedchar >::value &&!std::is_same< T, unsignedchar >::value, bool >::type ParseNumericValue (const std::string &value, T &destination)
 
template<typename T >
std::enable_if<!std::is_integral< T >::value||std::is_same< T, bool >::value||std::is_same< T, char >::value||std::is_same< T, signedchar >::value||std::is_same< T, unsignedchar >::value, bool >::type ParseNumericValue (const std::string &value, T &destination)
 
template<typename T >
std::enable_if<!std::is_assignable< T, std::string >::value, bool >::type operator() (const std::string &name, const std::string &value, T &destination)
 
template<typename T >
std::enable_if< std::is_assignable< T, std::string >::value, bool >::type operator() (const std::string &, const std::string &value, T &destination)
 

Detailed Description

A default Reader class for argument classes.

If destination type is assignable to std::string it uses an assignment to std::string. Otherwise ValueReader simply uses a std::istringstream to read into the destination type, and raises a ParseError if there are any characters left.


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