C++ Logo


Advanced search

Re: std::span<T> should be size_type NOT index_type.

From: Lyberta <lyberta_at_[hidden]>
Date: Sun, 12 May 2019 22:15:00 +0000
Timur Doumler via Std-Proposals:
> std::span is not a container.
> Cheers,
> Timur

But not having size_type break templates that don't take ownership the
the container and would otherwise be happy with std::span. I think
having size_type vs index_type duality does nothing good.

If we want people to take containers then add Container concept to the
standard library.

Received on 2019-05-12 17:17:01