View Single Post
  #1 (permalink)  
Old 04-04-2004
yomi yomi is offline
Registered User
 
 
Join Date: Aug 2003
Posts: 32
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++?
Reply With Quote