mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
clean-up
This commit is contained in:
parent
306b1d0704
commit
ef61dc38eb
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue