Files
json/docs/mkdocs/docs/api/basic_json/crbegin.md
T
Niels Lohmann 44f1bec789 docs: new design for the documentation site
Apply the brand to the Material for MkDocs site: Inter and JetBrains Mono
served by the site (upright and real italic), brand colours, blue header band
with the syntax pattern, wordmark in the header, new home page (hero, cards,
animated feature tour), 404 page, polish for tabs, search, footer, focus
rings, tables and code blocks, and theme features (code copy, previous/next
footer, TOC follow, search suggestions).

Draw the number railroad diagram, the parser callback events and the iterator
illustrations as inline SVGs that follow the light and dark scheme. The
generator scripts are in docs/mkdocs/scripts/figures; the feature slideshow
(json-light.svg, json-dark.svg, replacing json.gif on the home page) is built
by docs/mkdocs/scripts/slideshow. Decision nodes in five flowcharts become
hexagons, which need far less room.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-10-25 20:40:26 +01:00

1006 B

nlohmann::basic_json::crbegin

const_reverse_iterator crbegin() const noexcept;

Returns an iterator to the reverse-beginning; that is, the last element.

--8<-- "images/range-rbegin-rend.svg"

Return value

reverse iterator to 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 `crbegin()`.

```cpp
--8<-- "examples/crbegin.cpp"
```

Output:

```json
--8<-- "examples/crbegin.output"
```

See also

  • crend returns a const reverse iterator to one before the first element
  • rbegin returns a reverse iterator to the last element
  • cbegin returns a const iterator to the first element
  • Iterators - the article on iterators

Version history

  • Added in version 1.0.0.