14 #ifndef FOXXLL_MNG_ASYNC_SCHEDULE_HEADER 15 #define FOXXLL_MNG_ASYNC_SCHEDULE_HEADER 44 template <
typename RunType>
51 const size_t L = input.size();
53 for (
size_t i = 0; i < L; ++i)
54 disks[i] = input[i].bid.storage->get_device_id();
58 template <
typename B
idIteratorType>
60 BidIteratorType input_begin,
61 BidIteratorType input_end,
66 const size_t L = input_end - input_begin;
69 for (BidIteratorType it = input_begin; it != input_end; ++it, ++i)
70 disks[i] = it->storage->get_device_id();
76 #endif // !FOXXLL_MNG_ASYNC_SCHEDULE_HEADER iterator end() noexcept
return mutable iterator beyond last element
Simpler non-growing vector without initialization.
void compute_prefetch_schedule(const size_t *first, const size_t *last, size_t *out_first, size_t m, size_t D)
iterator begin() noexcept
return mutable iterator to first element