std::string_view can be used in map and unordered map

This avoids some unecessary dynamic allocations.
Also applies some review advice.
This commit is contained in:
florent.teppe 2023-01-21 17:45:23 +01:00
parent 63e44eddc9
commit a4137e941c
7 changed files with 12 additions and 13 deletions

View file

@ -94,6 +94,8 @@ namespace Misc::StringUtils
struct CiComp
{
using is_transparent = void;
bool operator()(std::string_view left, std::string_view right) const { return ciLess(left, right); }
};