Lines Matching defs:end

164 #include <iterator> // inserter, front_inserter, end
2365 // You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them
2563 auto it = std::find_if(std::begin(m), std::end(m), \
2568 j = ((it != std::end(m)) ? it : std::begin(m))->second; \
2575 auto it = std::find_if(std::begin(m), std::end(m), \
2580 e = ((it != std::end(m)) ? it : std::begin(m))->first; \
3318 // #include <nlohmann/detail/meta/call_std/end.hpp>
3334 NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end);
4209 using string_can_append_iter = decltype(std::declval<StringType&>().append(std::declval<const Arg&>().begin(), std::declval<const Arg&>().end()));
4261 out.append(arg.begin(), arg.end());
4433 n+1 is the index of the terminating null byte or the end of file.
4732 std::transform(j.begin(), j.end(), std::begin(l),
4776 using std::end;
4780 std::transform(j.begin(), j.end(),
4781 std::inserter(ret, end(ret)), [](const BasicJsonType & i)
4797 using std::end;
4801 j.begin(), j.end(), std::inserter(ret, end(ret)),
4875 inner_object->begin(), inner_object->end(),
5067 #include <iterator> // begin, end
5260 /// return iterator end (needed for range-based for)
5261 iteration_proxy_value<IteratorType> end() const noexcept
5263 return iteration_proxy_value<IteratorType>(container->end());
5486 using std::end;
5490 j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
5520 std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin());
5555 using std::end;
5559 j.m_value.object = j.template create<typename BasicJsonType::object_t>(begin(obj), end(obj));
6081 #include <iterator> // begin, end, iterator_traits, random_access_iterator_tag, distance, next
6186 // end up as the same value, e.g. 0xFFFFFFFF.
6214 : current(std::move(first)), end(std::move(last))
6219 if (JSON_HEDLEY_LIKELY(current != end))
6231 IteratorType end;
6238 return current == end;
6458 // Enables ADL on begin(container) and end(container)
6465 using std::end;
6472 void_t<decltype(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>()))>>
6474 using adapter_type = decltype(input_adapter(begin(std::declval<ContainerType>()), end(std::declval<ContainerType>())));
6478 return input_adapter(begin(container), end(container));
6675 @brief the end of an object was read
6689 @brief the end of an array was read
7039 for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
7351 end_array, ///< the character for array end `]`
7352 end_object, ///< the character for object end `}`
7356 end_of_input, ///< indicating the end of the input buffer
7396 return "end of input";
7523 for (auto range = ranges.begin(); range != ranges.end(); ++range)
7568 // end of file while parsing string
8885 // end of input (the null byte is needed when parsing from
9226 exception_message(input_format, concat("expected end of input; last byte: 0x", get_token_string()), "value"), nullptr));
9264 @return `true` if the \x00-byte indicating the end of the string was
9288 @param[in] len The length (including the zero-byte at the end) of the
10156 result.insert(result.end(), chunk.begin(), chunk.end());
11318 && JSON_HEDLEY_UNLIKELY(std::binary_search(bjd_optimized_type_markers.begin(), bjd_optimized_type_markers.end(), result.second)))
11570 auto it = std::lower_bound(bjd_types_map.begin(), bjd_types_map.end(), size_and_type.second, [](const bjd_type & p, char_int_type t)
11575 if (JSON_HEDLEY_UNLIKELY(it == bjd_types_map.end() || it->first != size_and_type.second))
11901 may be too large. Usually, @ref unexpect_eof() detects the end of
11934 may be too large. Usually, @ref unexpect_eof() detects the end of
11966 return sax->parse_error(chars_read, "<end of file>",
11967 parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), nullptr));
12466 // empty stack: we reached the end of the hierarchy: done
12648 end_value (`1`) models past the end.
12673 /// set iterator to a defined past the end
12685 /// return whether the iterator is at end
13003 // set to end so begin()==end() is true: null is empty
13035 m_it.object_iterator = m_object->m_value.object->end();
13041 m_it.array_iterator = m_object->m_value.array->end();
13074 JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
13080 JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
13118 JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end());
13124 JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end());
13751 return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
13777 /// @brief append another JSON pointer at the end of this JSON pointer
13781 reference_tokens.insert(reference_tokens.end(),
13783 ptr.reference_tokens.end());
13787 /// @brief append an unescaped reference token at the end of this JSON pointer
13795 /// @brief append an array index at the end of this JSON pointer
13802 /// @brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer
13810 /// @brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer
13817 /// @brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer
13862 /// @brief append an unescaped token at the end of the reference pointer
13869 /// @brief append an unescaped token at the end of the reference pointer
14044 std::all_of(reference_token.begin(), reference_token.end(),
14069 // explicitly treat "-" as index beyond the end
14364 // - slash: position of the last read slash (or end of string)
14854 v.insert(v.end(), s, s + length);
15723 const bool same_prefix = std::all_of(j.begin() + 1, j.end(),
15731 if (same_prefix && !(use_bjdata && std::find(bjdx.begin(), bjdx.end(), first_prefix) != bjdx.end()))
15803 if (use_bjdata && j.m_value.object->size() == 3 && j.m_value.object->find("_ArrayType_") != j.m_value.object->end() && j.m_value.object->find("_ArraySize_") != j.m_value.object->end() && j.m_value.object->find("_ArrayData_") != j.m_value.object->end())
15821 const bool same_prefix = std::all_of(j.begin(), j.end(),
15829 if (same_prefix && !(use_bjdata && std::find(bjdx.begin(), bjdx.end(), first_prefix) != bjdx.end()))
16026 const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), static_cast<std::size_t>(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el)
16176 std::size_t document_size = std::accumulate(value.begin(), value.end(), static_cast<std::size_t>(0),
16541 if (it == bjdtype.end())
16670 std::reverse(vec.begin(), vec.end());
17839 format. Returns an iterator pointing past-the-end of the decimal representation.
18647 // jump to the end to generate the string from backward,
18707 auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
18709 o->write_characters(begin, static_cast<size_t>(end - begin));
18730 const auto end = std::remove(number_buffer.begin(), number_buffer.begin() + len, thousands_sep);
18731 std::fill(end, number_buffer.end(), '\0');
18732 JSON_ASSERT((end - number_buffer.begin()) <= len);
18733 len = (end - number_buffer.begin());
18740 const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point);
18741 if (dec_pos != number_buffer.end())
18936 for (auto it = this->begin(); it != this->end(); ++it)
18944 return {std::prev(this->end()), true};
18951 for (auto it = this->begin(); it != this->end(); ++it)
18959 return {std::prev(this->end()), true};
18988 for (auto it = this->begin(); it != this->end(); ++it)
19003 for (auto it = this->begin(); it != this->end(); ++it)
19016 for (auto it = this->begin(); it != this->end(); ++it)
19031 for (auto it = this->begin(); it != this->end(); ++it)
19044 for (auto it = this->begin(); it != this->end(); ++it)
19049 for (auto next = it; ++next != this->end(); ++it)
19065 for (auto it = this->begin(); it != this->end(); ++it)
19070 for (auto next = it; ++next != this->end(); ++it)
19117 for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
19127 // remove the unneeded elements at the end of the vector
19142 for (auto it = this->begin(); it != this->end(); ++it)
19156 for (auto it = this->begin(); it != this->end(); ++it)
19168 for (auto it = this->begin(); it != this->end(); ++it)
19175 return Container::end();
19182 for (auto it = this->begin(); it != this->end(); ++it)
19189 return Container::end();
19194 for (auto it = this->begin(); it != this->end(); ++it)
19201 return Container::end();
19211 for (auto it = this->begin(); it != this->end(); ++it)
19219 return {--this->end(), true};
19743 std::move(array->begin(), array->end(), std::back_inserter(stack));
19764 std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), std::back_inserter(stack));
19836 end of every constructor to make sure that created objects respect the
19861 JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
20076 bool is_an_object = std::all_of(init.begin(), init.end(),
20116 m_value.array = create<array_t>(init.begin(), init.end());
21159 if (it == m_value.object->end())
21179 if (it == m_value.object->end())
21197 if (it == m_value.object->end())
21217 if (it == m_value.object->end())
21313 JSON_ASSERT(it != m_value.object->end());
21368 JSON_ASSERT(it != m_value.object->end());
21399 if (it != end())
21424 if (it != end())
21450 if (it != end())
21477 if (it != end())
21576 auto tmp = end();
21603 IteratorType result = end();
21673 IteratorType result = end();
21758 if (it != m_value.object->end())
21820 auto result = end();
21850 auto result = end();
21898 return is_object() && m_value.object->find(key) != m_value.object->end();
21907 return is_object() && m_value.object->find(std::forward<KeyType>(key)) != m_value.object->end();
21960 /// @sa https://json.nlohmann.me/api/basic_json/end/
21961 iterator end() noexcept
21969 /// @sa https://json.nlohmann.me/api/basic_json/end/
21970 const_iterator end() const noexcept
21988 return reverse_iterator(end());
21998 /// @brief returns an iterator to the reverse-end
22005 /// @brief returns an iterator to the reverse-end
22548 return insert_iterator(pos, ilist.begin(), ilist.end());
22580 update(j.begin(), j.end(), merge_objects);
22617 if (it2 != m_value.object->end())
23963 if (JSON_HEDLEY_LIKELY(it != parent.end()))
24000 if (JSON_HEDLEY_UNLIKELY(it == val.m_value.object->end()))
24159 result.insert(result.end(), temp_diff.begin(), temp_diff.end());
24163 // We now reached the end of at least one array
24203 if (target.find(it.key()) != target.end())
24207 result.insert(result.end(), temp_diff.begin(), temp_diff.end());
24222 if (source.find(it.key()) == source.end())
24277 for (auto it = apply_patch.begin(); it != apply_patch.end(); ++it)