title: Shared libraries memory space
body: <p>Does a C++ shared library have its own memory space? Or does it share the caller process' one?</p>
  
  <p>I have a shared library which contains some classes and wrapper functions.
  One of this wrapper function is kinda:</p>
  
  <p><code>libXXX_construct()</code> which initializes an object and returns the pointer to the said object.</p>
  
  <p>Once I use <code>libXXX_construct()</code> in a caller program where is the object placed?Is it in the "caller" memory space or is it in the library's memory space?</p>