mirror of
https://github.com/nlohmann/json.git
synced 2026-09-30 14:05:18 +00:00
- API pages for operator[], at, front, back, find, contains, count, begin, end, cbegin, cend, items, and type_name of basic_json_view, linked both ways with the basic_json pages - the feature page and size() describe document order and duplicate keys - the examples show when the view helps: reading a few fields of a large text, probing optional members, and members in source order Signed-off-by: Niels Lohmann <mail@nlohmann.me>
823 B
823 B
nlohmann::basic_json::cend
const_iterator cend() const noexcept;
Returns an iterator to one past the last element.
Return value
iterator one past 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 `cend()`.
```cpp
--8<-- "examples/cend.cpp"
```
Output:
```json
--8<-- "examples/cend.output"
```
See also
- cbegin - returns a const iterator to the first element
- basic_json_view::cend - the same iteration on a zero-copy view
Version history
- Added in version 1.0.0.