TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ operator<()

template<typename BasicJsonType >
bool nlohmann::detail::iter_impl< BasicJsonType >::operator< ( const iter_impl< BasicJsonType > &  other) const
inline

comparison: smaller

Precondition
The iterator is initialized; i.e. m_object != nullptr.

Definition at line 12177 of file json.hpp.

12178 {
12179 // if objects are not the same, the comparison is undefined
12180 if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
12181 {
12182 JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", *m_object));
12183 }
12184
12185 JSON_ASSERT(m_object != nullptr);
12186
12187 switch (m_object->m_type)
12188 {
12189 case value_t::object:
12190 JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators", *m_object));
12191
12192 case value_t::array:
12193 return (m_it.array_iterator < other.m_it.array_iterator);
12194
12195 case value_t::null:
12196 case value_t::string:
12197 case value_t::boolean:
12201 case value_t::binary:
12202 case value_t::discarded:
12203 default:
12204 return (m_it.primitive_iterator < other.m_it.primitive_iterator);
12205 }
12206 }
internal_iterator< typename std::remove_const< BasicJsonType >::type > m_it
the actual iterator of the associated instance
Definition: json.hpp:12410
@ number_integer
number value (signed integer)
@ discarded
discarded by the parser callback function
@ binary
binary array (ordered collection of bytes)
@ object
object (unordered set of name/value pairs)
@ number_float
number value (floating-point)
@ number_unsigned
number value (unsigned integer)
@ array
array (ordered collection of values)
primitive_iterator_t primitive_iterator
generic iterator for all other types
Definition: json.hpp:11661
BasicJsonType::array_t::iterator array_iterator
iterator for JSON arrays
Definition: json.hpp:11659