args  6.2.0
A simple single-header C++11 STL-only argument parser library
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_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: