@brief Convenience structure to ensure we output match locations to independent cache lines. */
| 241 | |
| 242 | /** @brief Convenience structure to ensure we output match locations to independent cache lines. */ |
| 243 | struct alignas(fu::default_alignment_k) aligned_visit_t { |
| 244 | std::size_t task = 0; |
| 245 | bool operator<(aligned_visit_t const &other) const noexcept { return task < other.task; } |
| 246 | bool operator==(aligned_visit_t const &other) const noexcept { return task == other.task; } |
| 247 | bool operator!=(std::size_t other_index) const noexcept { return task != other_index; } |
| 248 | bool operator==(std::size_t other_index) const noexcept { return task == other_index; } |
| 249 | }; |
| 250 | |
| 251 | bool contains_iota(std::vector<aligned_visit_t> &visited) noexcept { |
| 252 | std::sort(visited.begin(), visited.end()); |
nothing calls this directly
no outgoing calls
no test coverage detected