Issue description
https://github.com/zeromq/libzmq/blob/master/src/timers.hpp#L70
Using insert to add key-value pairs to this _timers std::multimap container may cause unnecessary copying or moving.
Using emplace instead of insert can construct objects inside the container, thus avoiding unnecessary copying or moving.
Issue description
https://github.com/zeromq/libzmq/blob/master/src/timers.hpp#L70
Using
insertto add key-value pairs to this _timersstd::multimapcontainer may cause unnecessary copying or moving.Using
emplaceinstead ofinsertcan construct objects inside the container, thus avoiding unnecessary copying or moving.