3 ms·
Great work! Does it also support sorting object pointers by a numeric key?
by superjan 4y ago
Great work! Does it also support sorting object pointers by a numeric key?
- janwas 4y agoThanks :) If I understand correctly, you have tuples of (number, T*) and want to sort by number? That can be done by storing these tuples interleaved, reinterpret_casting to hwy::uint128_t (making sure that the pointer bits are in the least-significant half), and sorting those.