It is said that stl vector is "layout-compatible with c". Where can I find the definition of "compatible with layout-C"?
It means, as long as the vector is not empty, and vector.front () < / Code> gives you an indicator for an infected array of objects, which can be passed to a C API which expects such an array.
Comments
Post a Comment