From here http://www.cplusplus.com/reference/new/operator%20new[]/, it is unclear to me is it possible to allocate and construct objects with parameters. Like this:
struct MyClass {
int data;
MyClass(int k) {}
};
int main () {
// allocates and constructs five objects:
MyClass * p1 = new MyClass[5](1); // allocate 5 objects, and init all with '1'
}
Which is not work...