.. index:: py::builtins::range::stop .. _doxycast_pypp_classpy_1_1builtins_1_1range_1a829ab44e32fcb1cb830aacd4463a3115: .. _py-builtins-range-stop: *py::builtins::range::*\ stop ============================= .. code-block:: cpp constexpr const value_type& stop() const; Returns the stop value of the range (exclusive). Return value ------------ The stop value of the range. Complexity ---------- Constant. Example ------- .. code-block:: cpp #include #include int main() { py::range nums(10, 20, 2); py::print(nums.stop())); } **Output**: .. code-block:: text 20