3 ms·
To swap nodes in the list you need to use splice like this: keys_.splice(keys_.begin(), keys_, iter->second); Where iter is from the cache lookup.
by en4bz 10y ago
To swap nodes in the list you need to use splice like this:
keys_.splice(keys_.begin(), keys_, iter->second);
Where iter is from the cache lookup.