1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00
This commit is contained in:
neargye 2020-04-02 17:17:27 +05:00
parent 306b1d0704
commit ef61dc38eb

View file

@ -162,12 +162,14 @@ constexpr bool cmp_equal(std::string_view lhs, std::string_view rhs, BinaryPredi
if (lhs.size() != rhs.size()) {
return false;
}
const auto size = lhs.size();
for (std::size_t i = 0; i < size; ++i) {
if (!p(lhs[i], rhs[i])) {
return false;
}
}
return true;
}