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

iterator rbegin();
const_iterator rbegin() const;
const_iterator crbegin() const;

Description

Returns a reverse iterator to the first element of the reversed JSON container. It corresponds to the last element of the non-reversed container.

illustration of reverse iterators

Parameters

None.

Return value

Reverse iterator to the first element.

Complexity

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

Exceptions

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

See also