Ada*_*adi 2 c++ arrays dereference stdarray
我想在std :: array对象上使用按位数据转换,为此,我需要知道存储数组地址是否安全,或者是否存在更改数据位置的函数.例如:
std::array<int, 100> array;
int* startMarker = array.data();
(filing the array and doing operations on it)
std::cout << *startMarker << std::endl;
Run Code Online (Sandbox Code Playgroud)
谢谢你的回答.