TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ back()

template<typename BasicJsonType >
const std::string & nlohmann::json_pointer< BasicJsonType >::back ( ) const
inline

return last reference token

Precondition
not empty()
Returns
last reference token

@liveexample{The example shows the usage of back.,json_pointer__back}

@complexity Constant.

Exceptions
out_of_range.405if JSON pointer has no parent
Since
version 3.6.0

Definition at line 12815 of file json.hpp.

12816 {
12817 if (JSON_HEDLEY_UNLIKELY(empty()))
12818 {
12819 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
12820 }
12821
12822 return reference_tokens.back();
12823 }
bool empty() const noexcept
return whether pointer points to the root document
Definition: json.hpp:12862