Код: Выделить всё
#include
#include
#include
int main()
{
std::vector v = { 0, 1, 2, 3, 4, 5, 6, 7 };
auto array2d = std::mdspan(v.data(), 2, 4);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79131464/stdmdspan-support-in-msvc-19-41-vs-17-11-5[/url]