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