c++ 20 中是否有使用 std::array 定义的成员函数?

问题描述

到目前为止,我意识到没有像(sort,accumulate,push_back ..)这样的成员使用标准数组,对吗?我认为所有这些不错的方法都只适用于 vector

解决方法

std::array 中有很多成员函数,比如begin、end、rbegin、rend、max_size、fill 等等,就像上面提到的here