Re: STL allocator for shared memory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx> wrote in message
news:uFGrwNNpFHA.1444@xxxxxxxxxxxxxxxxxxxxxxx
> Joe wrote:
> > <nothing of importance>
>
> With Dinkumware's implementation you can use a custom pointer type that
> contains an offset (using the allocator::pointer typedef). I've had
> offset pointers working in a container using their implementation, since
> it is very careful to always use the allocator typedefs rather than
> assuming that pointer == T*.

And THAT actually answers the OP's question!!!

>
> Tom


.



Relevant Pages

  • Re: advantage of using typedefs
    ... consider the offset in a file. ... By creating the typedef, ... This is preferable to searching the source code for all offset ... practical for that platform. ...
    (comp.lang.c)
  • Object handle table position and typedef needed
    ... I need typedef and offset for HANDLE_TABLE from current process handle. ... I know these info on Windows XP and 2000, can you get me these information ... typedef struct _WIN2K_HANDLE_TABLE ...
    (microsoft.public.win32.programmer.kernel)