99 const std::size_t num_blocks,
100 GetBlockSize_ get_block_size,
103 SetBlockWeight_ set_block_weight
105 if (policy == WeightPolicy::NONE || policy == WeightPolicy::SIZE) {
106 for (I<
decltype(num_blocks)> s = 0; s < num_blocks; ++s) {
107 set_block_weight(s, get_block_size(s));
110 }
else if (policy == WeightPolicy::EQUAL) {
111 for (I<
decltype(num_blocks)> s = 0; s < num_blocks; ++s) {
112 set_block_weight(s, get_block_size(s) > 0);
116 for (I<
decltype(num_blocks)> s = 0; s < num_blocks; ++s) {