C++ Logo

std-proposals

Advanced search

Re: [span] Value of dynamic_extent

From: Lyberta <lyberta_at_[hidden]>
Date: Wed, 03 Jul 2019 10:56:00 +0000
> template <typename T, std::size_t Extent>
> void some_function(std::span<T, Extent> some_span) { ... }
>
> As currently specified, this function accepts any span of any extent,
> static or dynamic. Using a variadic template breaks this, and there would
> be no easy way to write a function taking both kinds of span.

Take std::ContiguousRange?


Received on 2019-07-03 05:58:59