C++ Logo

std-proposals

Advanced search

Re: [span] Value of dynamic_extent

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Mon, 1 Jul 2019 21:59:50 +0300
On 7/1/19 9:16 PM, Bjorn Reese via Std-Proposals wrote:
> On 7/1/19 7:07 PM, Tae Lim Kook via Std-Proposals wrote:
>
>> Hmm, is there any need to have zero as an actual static extent?
>
> What is the use case for a zero-capacity static extent?

I think, std::array allows zero extent. std::span constructor from such
an array should produce an empty span rather than a span with dynamic
extent.

Received on 2019-07-01 14:01:46