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

Method start_array

lesson6-Segmentation/json.hpp:5421–5432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5419 }
5420
5421 bool start_array(std::size_t len)
5422 {
5423 ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
5424
5425 if (JSON_HEDLEY_UNLIKELY(len != std::size_t(-1) && len > ref_stack.back()->max_size()))
5426 {
5427 JSON_THROW(out_of_range::create(408,
5428 "excessive array size: " + std::to_string(len)));
5429 }
5430
5431 return true;
5432 }
5433
5434 bool end_array()
5435 {

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected