hi

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • suribobby86@gmail.com

    hi

    can we allocate shres memory dynamically?
  • Victor Bazarov

    #2
    Re: hi

    suribobby86@gma il.com wrote:
    can we allocate shres memory dynamically?
    Probably. IIUIC, by "shres memory" you mean "shared memory". The
    concept relates to inter-process communication and has no definition
    in C++ language. Just like you can overload 'new' and 'new[]' to
    allocate memory from any particular source, you can overload them
    to allocate memory with any particular platform-specific traits, for
    example, as shared between processes. Now, we can't tell you how to
    do that because that's platform-specific. As to how to overload
    'new' and 'new[]' there are so many sources on the web and in print
    that it makes no sense to repeat them here.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask


    Comment

    Working...