MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / equivalent

Method equivalent

system/lib/libcxx/src/error_category.cpp:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27error_condition error_category::default_error_condition(int ev) const noexcept { return error_condition(ev, *this); }
28
29bool error_category::equivalent(int code, const error_condition& condition) const noexcept {
30 return default_error_condition(code) == condition;
31}
32
33bool error_category::equivalent(const error_code& code, int condition) const noexcept {
34 return *this == code.category() && code.value() == condition;

Callers 1

error_code.hFile · 0.80

Calls 2

default_error_conditionFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected