std::array 有一个固定的(编译时)大小,而 std::vector 可以增长。 因此, std::array 类似于使用C数组,而 std::vector 类似于动态分配内存。
確定! 回上一頁