|
slice array type mapping to c++
Hello. After read slice data type mapping, it is pointed out that array type is mapping to std::vector in c++. But std::vector seems limited in many cases.
For example, if I have an image to transfer from the client to server.
So my image is already in memory, if use std::vector, because it is value based, I have to do a data copy, and more inconveniently, std::vector(in microsoft's implementi) can only copy a element every time. So I have to write a cycle logic to copy the data.
Is there any more convenient type for array mapping in c++?
|