MCPcopy Create free account
hub / github.com/DFHack/dfhack / from_string

Function from_string

plugins/dig.cpp:475–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473
474template <class T>
475bool from_string(T& t,
476 const std::string& s,
477 std::ios_base& (*f)(std::ios_base&))
478{
479 std::istringstream iss(s);
480 return !(iss >> f >> t).fail();
481}
482
483enum circle_what
484{

Callers 1

digcircleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected