1# basic_json::cbegin 2 3```cpp 4const_iterator cbegin() const noexcept; 5``` 6 7Returns an iterator to the first element. 8 9![Illustration from cppreference.com](../../images/range-begin-end.svg) 10 11## Return value 12 13iterator to the first element 14 15## Exception safety 16 17No-throw guarantee: this member function never throws exceptions. 18 19## Complexity 20 21Constant. 22 23## Example 24 25??? example 26 27 The following code shows an example for `cbegin()`. 28 29 ```cpp 30 --8<-- "examples/cbegin.cpp" 31 ``` 32 33 Output: 34 35 ```json 36 --8<-- "examples/cbegin.output" 37 ``` 38 39## Version history 40 41- Added in version 1.0.0. 42