MCPcopy Create free account
hub / github.com/ElementsProject/elements / operator()

Method operator()

src/logging.h:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48struct SourceLocationHasher {
49 size_t operator()(const SourceLocation& source_location) const noexcept
50 {
51 // Use CSipHasher(0, 0) as a simple way to get uniform distribution.
52 return static_cast<size_t>(CSipHasher(0, 0)
53 .Write(std::hash<std::string>{}(source_location.m_file))
54 .Write(std::hash<int>{}(source_location.m_line))
55 .Finalize());
56 }
57};
58
59struct LogCategory {

Callers

nothing calls this directly

Calls 3

CSipHasherClass · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected