<xstd/bits/bit_algorithm/bit_sort.hpp>¶
bit_sort¶
As ranges::sort in [alg.sorting], false ordered before true, with:
- Constraints:
Ris a writable sequence of ours, a window included. - Effects: Counts the
kpositions that aretrue, then sets the firstN - kpositionsfalseand the lastktrue. Everyfalseis like every other, so the result isranges::stable_sort's too. - Complexity: O(
N/D).