| 76 | |
| 77 | template <typename T> |
| 78 | py::list convertRandomSizedPy(T && t) { |
| 79 | auto rangeSize = static_cast<size_t>(ranges::size(t)); |
| 80 | pybind11::list list{rangeSize}; |
| 81 | size_t index = 0; |
| 82 | RANGES_FOR(auto && a, t) { |
| 83 | list[index] = std::forward<decltype(a)>(a); |
| 84 | index++; |
| 85 | } |
| 86 | return list; |
| 87 | } |
| 88 | |
| 89 | template <typename T> |
| 90 | py::list convertInputPy(T && t) { |