MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / set_end

Method set_end

native/thirdpart/json/json.hpp:9515–9539  ·  view source on GitHub ↗

! @brief set the iterator past the last value @pre The iterator is initialized; i.e. `m_object != nullptr`. */

Source from the content-addressed store, hash-verified

9513 @pre The iterator is initialized; i.e. `m_object != nullptr`.
9514 */
9515 void set_end() noexcept
9516 {
9517 assert(m_object != nullptr);
9518
9519 switch (m_object->m_type)
9520 {
9521 case value_t::object:
9522 {
9523 m_it.object_iterator = m_object->m_value.object->end();
9524 break;
9525 }
9526
9527 case value_t::array:
9528 {
9529 m_it.array_iterator = m_object->m_value.array->end();
9530 break;
9531 }
9532
9533 default:
9534 {
9535 m_it.primitive_iterator.set_end();
9536 break;
9537 }
9538 }
9539 }
9540
9541 public:
9542 /*!

Callers 3

set_beginMethod · 0.45
endFunction · 0.45
cendFunction · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected