MCPcopy Create free account
hub / github.com/ashvardanian/ForkUnion / aligned_visit_t

Class aligned_visit_t

scripts/test.cpp:243–249  ·  view source on GitHub ↗

@brief Convenience structure to ensure we output match locations to independent cache lines. */

Source from the content-addressed store, hash-verified

241
242/** @brief Convenience structure to ensure we output match locations to independent cache lines. */
243struct 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
251bool contains_iota(std::vector<aligned_visit_t> &visited) noexcept {
252 std::sort(visited.begin(), visited.end());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected