tuk*_*ket 5 c++ stdvector c++-standard-library c++20 std-span
我想这样做
#include <vector>
#include <span>
struct S
{
std::vector<int> v;
void set(std::span<int> _v)
{
v = _v;
}
};
Run Code Online (Sandbox Code Playgroud)
但它不编译。有哪些替代方案?