MCPcopy Create free account
hub / github.com/fmtlib/fmt / equal2

Function equal2

include/fmt/format.h:1196–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194
1195// Compares two characters for equality.
1196template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool {
1197 return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]);
1198}
1199inline auto equal2(const char* lhs, const char* rhs) -> bool {
1200 return memcmp(lhs, rhs, 2) == 0;
1201}

Callers 1

vformat_toFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected