Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个
QVector<structure> m_vector;
该结构有许多字段,其中一些是固定维度的,其中一些是其他动态 QVectors..
我想知道我是否可以这样做:
m_vector[4].another_vector[9].another_vector[2].field_in_the_structure = 2;
更改对整个 m_vector 是否有效?
是的,这应该按照您预期的方式工作。