C++ Logo

sg16

Advanced search

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: Sat, 27 Apr 2019 16:09:12 +0300
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'.

Received on 2019-04-27 15:09:26