【C++】记录size of std::vector的巧妙坑
定义
std::vector<float> vertices {0.0f, 0.5f, 0.0f, // x,y,z of first point.0.5f, -0.5f, 0.0f, // x,y,z of second point.-0.5f, -0.5f, 0.0f, // x,y,z of third point.}求:vertices所存储的数据的字节数?我之前以为,答案…
2026/8/14 13:41:32