C++ Logo

std-proposals

Advanced search

Re: [span] Value of dynamic_extent

From: Justin Bassett <jbassett271_at_[hidden]>
Date: Wed, 3 Jul 2019 05:50:30 -0700
On Wed, Jul 3, 2019, 3:57 AM Lyberta via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Take std::ContiguousRange?
>

Then using span's member functions would fail for e.g. a vector passed in.

I'm not concerned about the C++ generic programming experts who will know
to convert the incoming range to a span, but the non-expert who doesn't
know much about writing generics. Besides, what if you actually want a
std::span, not just "a span-like thing"?

>

Received on 2019-07-03 07:52:38