B
barcaroller
Is there a way of getting a C-style pointer to the contents of a vector<T>
(similar to string's c_str)?
If not, what is the most efficent way of doing this? The reason I need a
C-style pointer is because I need to map the contents of the vector<T> to a
C-style struct (for reading, not writing).
(similar to string's c_str)?
If not, what is the most efficent way of doing this? The reason I need a
C-style pointer is because I need to map the contents of the vector<T> to a
C-style struct (for reading, not writing).