]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # <small>nlohmann::basic_json::</small>end |
2 | ||
3 | ```cpp | |
4 | iterator end() noexcept; | |
5 | const_iterator end() const noexcept; | |
6 | ``` | |
7 | ||
8 | Returns an iterator to one past the last element. | |
9 | ||
10 | ![Illustration from cppreference.com](../../images/range-begin-end.svg) | |
11 | ||
12 | ## Return value | |
13 | ||
14 | iterator one past 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 | ## Examples | |
25 | ||
26 | ??? example | |
27 | ||
28 | The following code shows an example for `end()`. | |
29 | ||
30 | ```cpp | |
31 | --8<-- "examples/end.cpp" | |
32 | ``` | |
33 | ||
34 | Output: | |
35 | ||
36 | ```json | |
37 | --8<-- "examples/end.output" | |
38 | ``` | |
39 | ||
40 | ## Version history | |
41 | ||
42 | - Added in version 1.0.0. |