MCPcopy Create free account
hub / github.com/celtera/libremidi / equivalent

Method equivalent

include/libremidi/system_error2.hpp:3146–3155  ·  view source on GitHub ↗

---------- GenericErrorDomain

Source from the content-addressed store, hash-verified

3144// ---------- GenericErrorDomain
3145//
3146inline bool generic_error_domain::equivalent(const error& lhs, const error& rhs) const noexcept
3147{
3148 assert(lhs.domain() == *this);
3149 if (lhs.domain() == rhs.domain())
3150 {
3151 return error_cast<std::errc>(lhs) == error_cast<std::errc>(rhs);
3152 }
3153
3154 return false;
3155}
3156
3157// namespace {
3158

Callers 1

operator ==Function · 0.80

Calls 5

error_from_exceptionFunction · 0.85
make_error_codeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected