21 static thread_local std::istringstream stream;
33 const std::string&
s,
const T& defValue = T{},
bool throw_on_error =
true)
41 throw std::runtime_error(
42 std::string(
"[from_string()] Cannot parse string: ") +
s);
T from_string(const std::string &s, const T &defValue=T{}, bool throw_on_error=true)
Converts from string to any data type that supports reading (>>) from a text stream.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::istringstream & get_istringstream()