I found this code here to resort efficiently an element in a map:
std::map m{ {1, a}, {2, b} }; auto nodeHandler = m.extract(1); nodeHandl