C++ Logo

std-proposals

Advanced search

Re: [span] Value of dynamic_extent

From: Tae Lim Kook <uruwi_at_[hidden]>
Date: Mon, 01 Jul 2019 18:21:07 +0000
> > 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 was thinking generic code that instantiates span with an
extent that depends on some template parameter (as I mentioned
in the previous reply), but I don't currently have any
concrete examples on top of my head. Otherwise, a span of size
0 would be useless.

- T

Received on 2019-07-01 13:23:04