| 47 | |
| 48 | struct 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 | |
| 59 | struct LogCategory { |
nothing calls this directly
no test coverage detected