40 auto x = m_offset_map.lower_bound(size);
41 std::cout <<
"TRY_FIND size=" << size <<
" n=" << m_offset_map.size() <<
"\n";
42 if (x == m_offset_map.end())
44 DataType offset = x->second;
45 DataType offset_size = x->first;
46 std::cout <<
"FOUND size=" << size <<
" found_offset=" << offset
47 <<
" offset_size=" << offset_size <<
"\n";
48 m_offset_map.erase(x);
49 DataType remaining_size = offset_size - size;
50 if (remaining_size != 0)
51 add(remaining_size, offset + size);