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'.
> > 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