<xstd/bits/bit_algorithm/bit_is_sorted.hpp>, <xstd/bits/bit_algorithm/bit_is_partitioned.hpp>¶
bit_is_sorted, bit_is_partitioned¶
As ranges::is_sorted in [alg.sorting] and ranges::is_partitioned in
[alg.partitions], over identity(), with:
- Constraints:
Ris a sequence of ours, a window included. - Returns: For
bit_is_sorted, whether nofalsefollows the firsttrue; forbit_is_partitioned, whether notruefollows the firstfalse. - Complexity: O(
N/D): two searches, the second from where the first stopped.