MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / visit_begin_array

Method visit_begin_array

include/jsoncons/json_decoder.hpp:165–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 JSONCONS_VISITOR_RETURN_TYPE visit_begin_array(semantic_tag tag, const ser_context&, std::error_code&) override
166 {
167 if (structure_stack_.back().type_ == structure_type::root_t)
168 {
169 index_ = 0;
170 item_stack_.clear();
171 is_valid_ = false;
172 }
173 item_stack_.emplace_back(std::move(name_), index_++, json_array_arg, tag);
174 structure_stack_.emplace_back(structure_type::array_t, item_stack_.size()-1);
175 JSONCONS_VISITOR_RETURN;
176 }
177
178 JSONCONS_VISITOR_RETURN_TYPE visit_end_array(const ser_context&, std::error_code&) override
179 {

Callers

nothing calls this directly

Calls 3

backMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected