C++ Logo

SG16

Advanced search

Subject: Re: [SG16-Unicode] It’s Time to Stop Adding New Features for Non-Unicode Execution Encodings in C++
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2019-04-27 08:09:12


On Sat, 27 Apr 2019 at 15:44, Lyberta <lyberta_at_[hidden]> wrote:

> > Both std::optional and std::span provide 'safe' ways for extracting
> > and indexing.
> Last time I checked, std::span doesn't have at().

That's correct. To do 'safe' indexing, you need to do a range-check
before the indexing.
That doesn't mean it's not 'safe'.


SG16 list run by sg16-owner@lists.isocpp.org