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

Method start_object

lesson6-Segmentation/json.hpp:5395–5406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5393 }
5394
5395 bool start_object(std::size_t len)
5396 {
5397 ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
5398
5399 if (JSON_HEDLEY_UNLIKELY(len != std::size_t(-1) && len > ref_stack.back()->max_size()))
5400 {
5401 JSON_THROW(out_of_range::create(408,
5402 "excessive object size: " + std::to_string(len)));
5403 }
5404
5405 return true;
5406 }
5407
5408 bool key(string_t& val)
5409 {

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected