如何使用 std span 进行边界检查?

Ayx*_*xan 6 c++ outofrangeexception c++20 std-span

std::vector几乎所有其他容器都有一种非常方便的边界检查方法:at(). std::span显然没有那个。

Ayx*_*xan 1

std::span::at将在 C++26 中添加。