【发布时间】:2020-12-20 11:28:52
【问题描述】:
我想这样做
#include <vector>
#include <span>
struct S
{
std::vector<int> v;
void set(std::span<int> _v)
{
v = _v;
}
};
但它does not compile。有哪些替代方案?
【问题讨论】:
标签: c++ stdvector c++20 c++-standard-library std-span