title: Am I actually calling ctor and initializing the vtable on an pointer to an object? C++
body: <p>I feel a little dumb for asking this but I have a situation where I cannot use the new keyword. I need to make sure the constructor is being called for the object pointed to by the variable Utf8Buffer, an example lies below.</p>
  
  <pre><code>Utf8String * pUtf8Buffer;
      void Initialize(void * stringbuffer, size_t bufferlen)
      {
          pUtf8Buffer = (Utf8String*)this-&gt;pMemMan-&gt;AllocMem(sizeof(Utf8String));
          //In the line below am I calling ctor of the object pointed to by the Utf8Buffer
          //I specifically need ctor to be called on this object to initialize the vtable
          (*pUtf8Buffer) = Utf8String(stringbuffer, bufferlen);
      }
  </code></pre>