【发布时间】:2020-04-17 10:51:30
【问题描述】:
std::array方法begin()和data()有什么区别?例如:
std::array<int, 5> = { /* numbers */ };
int* it = array.begin();
int* data = array.data();
// it and data are same here
它们可以根据类型而有所不同吗?或者也许没有区别,这些方法只是为了匹配其他 c++ 数据结构。
【问题讨论】: