json/doc/mkdocs/docs/api/basic_json/cbegin.md
2020-08-12 13:41:59 +02:00

615 B

basic_json::cbegin

const_iterator cbegin() const noexcept;

Returns an iterator to the first element.

Illustration from cppreference.com

Return value

iterator to the first element

Exception safety

No-throw guarantee: this member function never throws exceptions.

Complexity

Constant.

Example

??? example

The following code shows an example for `cbegin()`.

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

Output:

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

Version history

  • Added in version 1.0.0.