Other articles


  1. Placement new

    For advanced C++ programmers, placement new is nothing special. It can initialize a pre-allocated memory block. However, placement new is more than what you think. It accpets an arbitrary number of arguments of arbitrary types.

    See the following code snippet:

    #include <iostream>
    #include <string>
    #include <vector>
    
    void* operator new(size_t …
    read more

social