Boost logo

Boost :

From: Alexander Grund (alexander.grund_at_[hidden])
Date: 2023-06-15 09:03:59


> So you are adding a building block to have such a "cosort".
> You're just missing a way to apply that reordering to several
> (random-access) collections.

There already is: Basically you first do an indirect sort and then use
`boost::algorithm::apply_permutation` on each collection with the result
permutation.
See the test case and documentation of indirect_sort.

Alex




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk