TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ pop_back()

template<typename BasicJsonType >
void nlohmann::json_pointer< BasicJsonType >::pop_back ( )
inline

remove last reference token

Precondition
not empty()

@liveexample{The example shows the usage of pop_back.,json_pointer__pop_back}

@complexity Constant.

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

Definition at line 12791 of file json.hpp.

12792 {
12793 if (JSON_HEDLEY_UNLIKELY(empty()))
12794 {
12795 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", BasicJsonType()));
12796 }
12797
12798 reference_tokens.pop_back();
12799 }
bool empty() const noexcept
return whether pointer points to the root document
Definition: json.hpp:12862