MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / parse_bool

Function parse_bool

include/libnpy/npy.hpp:276–283  ·  view source on GitHub ↗

Parses the string representation of a Python boolean */

Source from the content-addressed store, hash-verified

274 Parses the string representation of a Python boolean
275 */
276inline bool parse_bool(const std::string &in) {
277 if (in == "True")
278 return true;
279 if (in == "False")
280 return false;
281
282 throw std::runtime_error("Invalid python boolan.");
283}
284
285/**
286 Parses the string representation of a Python str

Callers 1

parse_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected