MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / start_array

Function start_array

include/behaviortree_cpp/contrib/json.hpp:6898–6908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6896 }
6897
6898 bool start_array(std::size_t len)
6899 {
6900 ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
6901
6902 if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
6903 {
6904 JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back()));
6905 }
6906
6907 return true;
6908 }
6909
6910 bool end_array()
6911 {

Callers

nothing calls this directly

Calls 4

createFunction · 0.85
concatFunction · 0.85
push_backMethod · 0.80
to_stringFunction · 0.70

Tested by

no test coverage detected