6 Span¶ 约 2 个字 4 行代码 预计阅读时间不到 1 分钟 ```admonish danger 这段代码会导致未定义的行为,因为基于范围的 for 循环中存在一个 bug,在对临时对象的引用上进行迭代时会使用已经销毁的值 Text Only```c++ // for the last 3 returned elements: for (auto s : std::span{arrayOfConst()}.last(3)) // fatal runtime ERROR Support Me! 难道说……你愿意给我买一瓶快乐水吗!🫣 How about...buy me a coffee?😋