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

Function JSON_CATCH

lesson6-Segmentation/json.hpp:19802–19806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19800 return m_value.array->at(idx);
19801 }
19802 JSON_CATCH (std::out_of_range&)
19803 {
19804 // create better exception explanation
19805 JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range"));
19806 }
19807 }
19808 else
19809 {

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected