How to initialize a vector of pointers
A zero-size vector of pointers: A vector of NULL pointers: A vector of pointers to newly allocated objects (not really initialization though): Initializing a vector of pointers to newly allocated objects (needs C++11): A smarter version of #3: