TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ key()

template<typename BasicJsonType >
const object_t::key_type & nlohmann::detail::iter_impl< BasicJsonType >::key ( ) const
inline

return the key of an object iterator

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

Definition at line 12385 of file json.hpp.

12386 {
12387 JSON_ASSERT(m_object != nullptr);
12388
12389 if (JSON_HEDLEY_LIKELY(m_object->is_object()))
12390 {
12391 return m_it.object_iterator->first;
12392 }
12393
12394 JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators", *m_object));
12395 }
internal_iterator< typename std::remove_const< BasicJsonType >::type > m_it
the actual iterator of the associated instance
Definition: json.hpp:12410
BasicJsonType::object_t::iterator object_iterator
iterator for JSON objects
Definition: json.hpp:11657