【发布时间】:2019-11-10 16:18:21
【问题描述】:
似乎 C++20 中的std::span 的定义类似于
template<class T>
class span
{
T* begin;
size_t count;
};
不是
template<class Iter>
class span
{
Iter begin;
Iter end;
};
哪个更通用(适用于 std::list、std::map 等)?
【问题讨论】: