Function from_string

Synopsis

#include <toml/utility.hpp>

template <typename T>
T from_string(const std::string &str, T opt)

Description

No description yet.

Source

Lines 83-90 in toml/utility.hpp.

template<typename T>
T from_string(const std::string& str, T opt)
{
    T v(opt);
    std::istringstream iss(str);
    iss >> v;
    return v;
}





Add Discussion as Guest

Log in