MCPcopy Create free account
hub / github.com/LASzip/LASzip / stoidefault

Function stoidefault

src/mydefs.cpp:750–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750int stoidefault(const std::string& val, int def) {
751 try {
752 return std::stoi(val);
753 } catch (const std::exception&) {
754 return def;
755 }
756}
757
758double stoddefault(const std::string& val, double def) {
759 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected