nlohmann::basic_json::end - renxiaobo27/json GitHub Wiki

iterator end();
const_iterator end() const;
const_iterator cend() const;

Description

Returns an iterator to the element following the last element of the container. This element acts as a placeholder; attempting to access it results in undefined behavior.

illustration of iterators

Parameters

None.

Return value

Iterator to the element following the last element.

Complexity

Constant, as long as ArrayType and ObjectType satisfy the Container concept.

Exceptions

None. The function's noexcept-specification is noexcept.

See also