py::builtins::range::front¶
constexpr value_type front() const;
Returns the first value of the range.
Return value¶
The first value of the range.
Complexity¶
Constant.
Example¶
#include <pypp/builtins/range.hpp>
#include <pypp/builtins/print.hpp>
int main()
{
py::range<int> range(2, 5);
py::print(range.front());
}
Output:
2