Lines Matching defs:empty
2949 @pre The search string @a f must not be empty. **This precondition is
2958 JSON_ASSERT(!f.empty());
4374 if (tokens.empty())
5133 /// an empty string (to return a reference for primitive values)
5213 // use an empty key for all primitive types
6236 bool empty() const
6257 if (JSON_HEDLEY_UNLIKELY(input.empty()))
6315 if (JSON_HEDLEY_UNLIKELY(input.empty()))
6346 if (JSON_HEDLEY_UNLIKELY(!input.empty()))
6811 JSON_ASSERT(!ref_stack.empty());
6821 JSON_ASSERT(!ref_stack.empty());
6843 JSON_ASSERT(!ref_stack.empty());
6871 @invariant If the ref stack is empty, then the passed value will be the new
6880 if (ref_stack.empty())
7031 JSON_ASSERT(!ref_stack.empty());
7032 JSON_ASSERT(!keep_stack.empty());
7036 if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
7087 JSON_ASSERT(!ref_stack.empty());
7088 JSON_ASSERT(!keep_stack.empty());
7093 if (!keep && !ref_stack.empty() && ref_stack.back()->is_array())
7125 callback function with an empty array or object, respectively.
7127 @invariant If the ref stack is empty, then the passed value will be the new
7138 JSON_ASSERT(!keep_stack.empty());
7159 if (ref_stack.empty())
7185 JSON_ASSERT(!key_keep_stack.empty());
8696 JSON_ASSERT(!token_string.empty());
11242 if (!dim.empty()) // if ndarray, convert to an object in JData annotated array format
11244 for (auto i : dim) // test if any dimension in an ndarray is 0, if so, return a 1D empty container
12464 if (states.empty())
12466 // empty stack: we reached the end of the hierarchy: done
12492 JSON_ASSERT(!states.empty());
12546 JSON_ASSERT(!states.empty());
12568 if (!context.empty())
13003 // set to end so begin()==end() is true: null is empty
13828 if (empty())
13842 if (JSON_HEDLEY_UNLIKELY(empty()))
13854 if (JSON_HEDLEY_UNLIKELY(empty()))
13877 /// @sa https://json.nlohmann.me/api/json_pointer/empty/
13878 bool empty() const noexcept
13880 return reference_tokens.empty();
13915 if (p == p_end // invalid input or empty string
13935 if (JSON_HEDLEY_UNLIKELY(empty()))
13998 single value; that is, with an empty list of reference tokens.
14344 @throw parse_error.107 if the pointer is not empty or begins with '/'
14351 // special case: empty reference string -> no reference tokens
14352 if (reference_string.empty())
14360 JSON_THROW(detail::parse_error::create(107, 1, detail::concat("JSON pointer must be empty or begin with '/' - was: '", reference_string, "'"), nullptr));
14424 if (value.m_value.array->empty())
14426 // flatten empty array as null
14443 if (value.m_value.object->empty())
14445 // flatten empty object as null
15719 if (use_type && !j.m_value.array->empty())
15765 if (use_type && !j.m_value.binary->empty())
15817 if (use_type && !j.m_value.object->empty())
16548 std::size_t len = (value.at(key).empty() ? 0 : 1);
18001 if (val.m_value.object->empty())
18074 if (val.m_value.array->empty())
18101 JSON_ASSERT(!val.m_value.array->empty());
18122 JSON_ASSERT(!val.m_value.array->empty());
18156 if (!val.m_value.binary->empty())
18187 if (!val.m_value.binary->empty())
19630 /// constructor for empty values of a given type
19754 while (!stack.empty())
19981 /// @brief create an empty value with a given type
21228 // implicitly convert null value to an empty array
21287 // implicitly convert null value to an empty object
21340 // implicitly convert null value to an empty object
22073 /// @brief checks whether the container is empty.
22074 /// @sa https://json.nlohmann.me/api/basic_json/empty/
22075 bool empty() const noexcept
22081 // null values are empty
22087 // delegate call to array_t::empty()
22088 return m_value.array->empty();
22093 // delegate call to object_t::empty()
22094 return m_value.object->empty();
22120 // null values are empty
22587 // implicitly convert null value to an empty object
23886 if (ptr.empty())
24133 // if the values are the same, return empty patch