| 18 | { |
| 19 | public: |
| 20 | data_iterator(std::shared_ptr<void> owner, std::span<const uint8_t> data, icm::shape shape, dtype dt) |
| 21 | : owner_(std::move(owner)) |
| 22 | , data_(data) |
| 23 | , shape_(std::move(shape)) |
| 24 | , dtype_(dt) |
| 25 | { |
| 26 | ASSERT(std::accumulate(shape_.begin(), shape_.end(), 1, std::multiplies{}) * dtype_bytes(dtype_) == |
| 27 | data.size()); |
| 28 | } |
| 29 | |
| 30 | array operator*() const; |
| 31 |
nothing calls this directly
no test coverage detected