JSON for Modern C++  2.1.1
Public Member Functions | List of all members
nlohmann::basic_json::lexer::strtonum Struct Reference

parse string into a built-in arithmetic type as if the current locale is POSIX. More...

#include <json.hpp>

Public Member Functions

 strtonum (const char *start, const char *end)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
bool to (T &val) const
 

Detailed Description


struct nlohmann::basic_json::lexer::strtonum

Note
in floating-point case strtod may parse past the token's end - this is not an error
any leading blanks are not handled

Definition at line 11978 of file json.hpp.