Merge pull request #2674 from lioncash/emplace Use emplace() instead of insert() where applicable for maps.