
So to go back to my point: If you really want to avoid checks, and you do know the size beforehand, you can entirely avoid it by harnessing this type of compile-time information and leveraging the compiler in your favour. It all depends how dedicated you are to make sure you get that. Granted, with dynamic extent the number of checks will depend on several factors, including implementation, and hardening settings the user is building with. It is win after win with span. On Fri, Dec 6, 2024 at 9:47 PM Andrey Semashev via Boost < boost@lists.boost.org> wrote:
On 12/7/24 00:42, Vinnie Falco wrote:
On Fri, Dec 6, 2024 at 1:38 PM Andrey Semashev via Boost
mailto:boost@lists.boost.org> wrote: Unless this is a new addition, I don't see such a member in std::span.
Ah, yes, I missed this, thanks.
Anyway, it doesn't work as the offset is a runtime value in this case.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost