<xstd/bits/bit_algorithm/bit_reverse.hpp>¶
bit_reverse¶
As ranges::reverse in [alg.reverse], with:
- Constraints:
Ris a whole sequence of ours whose storage is writable: an owner that is notconst, or a whole view of bits that are notconst. A window, which shares its end blocks with positions outside it, is turned away. - Effects: Position
itakes positionN - 1 - i: the blocks in reverse order, each block's bits reversed, and the padding, which then lies at the bottom, shifted out. The padding stays clear. - Returns:
ranges::end(r). - Complexity: O(
N/D), without allocating.