Lines Matching refs:idx

14306                     const auto idx = array_index<BasicJsonType>(reference_token);
14307 if (idx >= ptr->size())
14313 ptr = &ptr->operator[](idx);
21104 reference at(size_type idx)
21111 return set_parent(m_value.array->at(idx));
21116 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
21127 const_reference at(size_type idx) const
21134 return m_value.array->at(idx);
21139 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
21226 reference operator[](size_type idx)
21239 // fill up array with null values if given idx is outside range
21240 if (idx >= m_value.array->size())
21247 m_value.array->resize(idx + 1);
21258 set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size));
21264 return m_value.array->operator[](idx);
21272 const_reference operator[](size_type idx) const
21277 return m_value.array->operator[](idx);
21788 void erase(const size_type idx)
21793 if (JSON_HEDLEY_UNLIKELY(idx >= size()))
21795 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), this));
21798 m_value.array->erase(m_value.array->begin() + static_cast<difference_type>(idx));
23924 const auto idx = json_pointer::template array_index<basic_json_t>(last_path);
23925 if (JSON_HEDLEY_UNLIKELY(idx > parent.size()))
23928 JSON_THROW(out_of_range::create(401, detail::concat("array index ", std::to_string(idx), " is out of range"), &parent));
23932 parent.insert(parent.begin() + static_cast<difference_type>(idx), val);