C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] std::span<T> should be size_type NOT index_type.
From: Lyberta (lyberta_at_[hidden])
Date: 2019-05-12 17:15:00


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.




STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups