mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
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:
parent
63e44eddc9
commit
a4137e941c
7 changed files with 12 additions and 13 deletions
|
@ -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); }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue