Files
json/docs/mkdocs/docs/api/basic_json/cend.md
Niels Lohmann 5a9f59a688 Document element access, lookup, and iteration of json_view
- 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>
2026-09-29 14:02:50 +02:00

823 B

nlohmann::basic_json::cend

const_iterator cend() const noexcept;

Returns an iterator to one past the last element.

Illustration from cppreference.com

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

Version history

  • Added in version 1.0.0.