# nlohmann::basic_json::crend ```cpp const_reverse_iterator crend() const noexcept; ``` Returns an iterator to the reverse-end; that is, one before the first element. This element acts as a placeholder, attempting to access it results in undefined behavior.
--8<-- "images/range-rbegin-rend.svg"

`crend()` points to the position before the first element, like `rend()`, and `rbegin()` to the last element. The upper row is the reversed sequence and the lower row the forward sequence; dashed arrows link each reverse iterator to the forward iterator it stores, and dashed cells are past-the-last positions.

## Return value reverse iterator to the element following the last element ## Exception safety No-throw guarantee: this member function never throws exceptions. ## Complexity Constant. ## Examples ??? example The following code shows an example for `crend()`. ```cpp --8<-- "examples/crend.cpp" ``` Output: ```json --8<-- "examples/crend.output" ``` ## See also - [`crbegin`](crbegin.md) - returns a const reverse iterator to the last element - [`rend`](rend.md) - returns a reverse iterator to one before the first element - [`cend`](cend.md) - returns a const iterator to one past the last element - [Iterators](../../features/iterators.md) - the article on iterators ## Version history - Added in version 1.0.0.