• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# basic_json::rend
2
3```cpp
4reverse_iterator rend() noexcept;
5const_reverse_iterator rend() const noexcept;
6```
7
8Returns an iterator to the reverse-end; that is, one before the first element. This element acts as a placeholder,
9attempting to access it results in undefined behavior.
10
11![Illustration from cppreference.com](../../images/range-rbegin-rend.svg)
12
13## Return value
14
15reverse iterator to the element following the last element
16
17## Exception safety
18
19No-throw guarantee: this member function never throws exceptions.
20
21## Complexity
22
23Constant.
24
25## Example
26
27??? example
28
29    The following code shows an example for `eend()`.
30
31    ```cpp
32    --8<-- "examples/rend.cpp"
33    ```
34
35    Output:
36
37    ```json
38    --8<-- "examples/rend.output"
39    ```
40
41## Version history
42
43- Added in version 1.0.0.
44