| 306 | // this must have a call policy of return_internal_reference |
| 307 | template <class T> |
| 308 | FixedArray<T> |
| 309 | FixedVArray<T>::getitem (Py_ssize_t index) |
| 310 | { |
| 311 | const size_t i = canonical_index (index, _length); |
| 312 | std::vector<T>& data = _ptr[(_indices ? raw_ptr_index(i) : i) * _stride]; |
| 313 | return FixedArray<T>(data.empty() ? nullptr : &data[0], data.size(), 1, _writable); |
| 314 | } |
| 315 | |
| 316 | template <class T> |
| 317 | FixedVArray<T> |
nothing calls this directly
no test coverage detected