string: use static operator() for simple transform equality functors
This commit is contained in:
parent
d0cc65db50
commit
e7a2c18481
@ -401,10 +401,10 @@ namespace cruft::string::equality {
|
|||||||
/// \tparam TransformV A character transform function
|
/// \tparam TransformV A character transform function
|
||||||
template <char (*TransformV)(char) noexcept>
|
template <char (*TransformV)(char) noexcept>
|
||||||
struct transform {
|
struct transform {
|
||||||
bool operator() (
|
static bool operator() (
|
||||||
std::string_view const &a,
|
std::string_view const &a,
|
||||||
std::string_view const &b
|
std::string_view const &b
|
||||||
) const noexcept {
|
) noexcept {
|
||||||
if (a.size () != b.size ())
|
if (a.size () != b.size ())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user