<xstd/bits/bit_algorithm/bit_partition.hpp>¶
bit_partition¶
As ranges::partition in [alg.partitions], over identity(), with:
- Constraints:
Ris a writable sequence of ours, a window included. - Effects: Counts the
kpositions that aretrue, then sets the firstkpositionstrueand the restfalse. - Returns:
{ranges::begin(r) + k, ranges::end(r)}. - Complexity: O(
N/D).