MCPcopy Create free account
hub / github.com/Snapchat/Valdi / hash

Method hash

valdi_core/src/valdi_core/cpp/Utils/Error.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30size_t ErrorStorage::hash() const {
31 size_t hash = 0;
32 boost::hash_combine(hash, message.hash());
33 boost::hash_combine(hash, stackTrace.hash());
34 if (cause != nullptr) {
35 boost::hash_combine(hash, cause->hash());
36 }
37
38 return hash;
39}
40
41Error::Error() = default;
42Error::Error(StringBox message) : Error(std::move(message), StringBox(), nullptr) {}

Callers 2

operator()Method · 0.45
hashCodeMethod · 0.45

Calls 1

hash_combineFunction · 0.85

Tested by

no test coverage detected