| 532 | // where you need fast lookup and don't care about alphabetical order. |
| 533 | struct StringFastLess { |
| 534 | bool operator()(const string &a, const string &b) const FL_NOEXCEPT { |
| 535 | fl::size al = a.size(), bl = b.size(); |
| 536 | if (al != bl) { |
| 537 | return al < bl; |
| 538 | } |
| 539 | return fl::memcmp(a.c_str(), b.c_str(), al) < 0; |
| 540 | } |
| 541 | }; |
| 542 | |
| 543 | } // namespace fl |