py::builtins::range::stop¶
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¶
#include <pypp/builtins/range.hpp>
#include <pypp/builtins/print.hpp>
int main()
{
py::range<int> nums(10, 20, 2);
py::print(nums.stop()));
}
Output:
20