.. index:: py::builtins::range::front .. _doxycast_pypp_classpy_1_1builtins_1_1range_1a8948525499e8289860de25dc2e205be1: .. _py-builtins-range-front: *py::builtins::range::*\ front ============================== .. code-block:: cpp constexpr value_type front() const; Returns the first value of the range. Return value ------------ The first value of the range. Complexity ---------- Constant. Example ------- .. code-block:: cpp #include #include int main() { py::range range(2, 5); py::print(range.front()); } **Output**: .. code-block:: text 2