Closed k0zmo closed 4 years ago
How do I please both clang-tidy which wants me to pass the string by value (I agree) and LGTM which wants me to pass the string by const reference?
EDIT: Nevermind
Pleasing all is a pain, but most of the time its possible... Again, thanks a lot!
@martinus Am I correct in understanding that this implementation does a double hash lookup, i.e the lookup in find()
and then if not found a repeat lookup in emplace()
could it be improved to do the same but with a single lookup?
Adds
try_emplace
andinsert_or_assign
from C++17. Fixes #71.