.. index:: py::builtins::range::cbegin .. _doxycast_pypp_classpy_1_1builtins_1_1range_1ae233904675dccb6ecc79c495cab2aaf1: .. _py-builtins-range-cbegin: *py::builtins::range::*\ cbegin =============================== .. code-block:: cpp constexpr const_iterator cbegin() const; Returns a constant iterator to the first value of the range. .. warning:: Iterators of ``range`` don't support ``operator ->`` as they are constructed on demand. .. tip:: Equivalent to :ref:`py-builtins-range-begin`. .. graphviz:: ../assets/range-begin-end.dot Return value ------------ A constant iterator to the first value. Complexity ---------- Constant. Example ------- .. code-block:: cpp #include #include int main() { py::range range(4); py::print(*range.cbegin()); } **Output**: .. code-block:: text 0