MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / JSON_INTERNAL_CATCH

Function JSON_INTERNAL_CATCH

lesson6-Segmentation/json.hpp:20361–20364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20359 return ptr.get_checked(this).template get<ValueType>();
20360 }
20361 JSON_INTERNAL_CATCH (out_of_range&)
20362 {
20363 return default_value;
20364 }
20365 }
20366
20367 JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name())));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected