103 const std::size_t num_blocks,
104 GetBlockSize_ get_block_size,
107 SetBlockWeight_ set_block_weight
109 if (policy == WeightPolicy::NONE || policy == WeightPolicy::SIZE) {
110 for (I<
decltype(num_blocks)> s = 0; s < num_blocks; ++s) {
111 set_block_weight(s, get_block_size(s));
114 }
else if (policy == WeightPolicy::EQUAL) {
115 for (I<
decltype(num_blocks)> s = 0; s < num_blocks; ++s) {
116 set_block_weight(s, get_block_size(s) > 0);
120 for (I<
decltype(num_blocks)> s = 0; s < num_blocks; ++s) {