C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal: add `.at()` to `mdspan`

From: Hewill Kang <hewillk_at_[hidden]>
Date: Thu, 7 Dec 2023 21:01:39 +0800
>
> Please feel free to give me some feedback on the proposal.


The "*Effects*: Equivalent to:" can be replaced with the simpler form of "
*Returns*: operator[](...).", and there is no need to mention "with bounds
checking" as this is already reflected in "Throws", although "Throws"'s
description seems too short and vague.

Hewill



Stephan Lachnit <stephan.lachnit_at_[hidden]> 於 2023年12月7日 週四 下午8:47寫道:

> Hey C++ folks,
>
> I want to propose to add memory-safe element access via `.at()` to
> `mdspan` for C++ 26, similar to how `span.at()` was added to C++26. This
> has already been discussed here before [2], so I went ahead and wrote the
> paper. You can find my proposal online [1].
>
> Please feel free to give me some feedback on the proposal. I'm also
> looking for a co-author on the paper, since I unfortunately do not have the
> (financial) means to present this to the ISO C++ committee.
>
> Cheers,
> Stephan
>
> [1]: https://stephanlachnit.github.io/mdspan-at/
> [2]: https://lists.isocpp.org/std-proposals/2023/11/index.php#msg8301
>

Received on 2023-12-07 13:01:52