How to use mmap to point to STL type?

Posted by srikfreak on Stack Overflow See other posts from Stack Overflow or by srikfreak
Published on 2010-04-16T01:28:41Z Indexed on 2010/04/16 1:33 UTC
Read the original article Hit count: 373

Filed under:
|
|

I have a mmap typecast to a char pointer

char *ptr;

ptr = (char *)mmap(0, FILESIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);

This was my earlier code. But now I want to use a map instead of char * as the requirements changed.

Now, my map is declared as map i_s_map;

How do I change my mmap call to point to the map?

© Stack Overflow or respective owner

Related posts about c++

Related posts about stl