It appears that std::span in C++20 is defined similarly to
template<class T>
class span
{
T* begin;
size_t count;
};
And not
template<class Iter>
class span
{
Iter begin;
Iter end;
};
which is more general (works with std::list, std::map, etc)?