std::array<int, double> c
时间: 2023-09-24 20:12:25 浏览: 85
C++之boost::array的用法
This line of code is incorrect. The second template argument for std::array should be the size of the array, not the type of the elements. Additionally, it is not possible to have an array with both int and double elements.
Here is an example of how to correctly declare an array of 5 integers using std::array:
```c++
std::array<int, 5> myArray;
```
阅读全文