在他的C++核心指南中,Bjarne Stroustrup建议在通过引用传递数组时使用span.为什么不直接传递一个std :: array对象?
c++ cpp-core-guidelines
c++ ×1
cpp-core-guidelines ×1