std::span
has been voted into C++20. I assumed that along with std::span
, there would be a convenience alias defined like this:
template <class T, size_t Extent = dynamic_extent>
using cspan = span<const T, Extent>;
To me, this seems like a really handy alias. I'd probably use cspan
more often than span
! According to cppreference, cspan
doesn't exist. There's one mention of cspan
in this paper which seems to imply that it was in the standard at some point. I can't find any other mentions.
So what happened to cspan
? Was it removed? Did it ever exist at all?