C++ Logo

sg16

Advanced search

Re: [isocpp-sg16] Thoughts on P4030R0: Endian Views

From: Jan Schultke <janschultke_at_[hidden]>
Date: Mon, 22 Jun 2026 14:51:56 +0200
>
> It sounds quite non-academic to me to apply an encoding-correcting
> view on a memory-mapped range and therefore apply the endian
> correction
> only to the parts of the range I actually end up traversing.
>

I was under the impression that people typically use memory mapping to map
e.g. a file onto a buffer of bytes, in which case being able to traverse a
byte array with reversed endianness would provide more utility than just
the quasi-transform-view that wraps byteswap.

Received on 2026-06-22 12:52:15