What is the name of this C++ syntax: “new (bar[n]) Foo();”? [duplicate]
This question already has an answer here: what is this syntax – new (this) T(); [duplicate] (1 answer) Closed 16 days ago. I have this memory buffer class: class Buffer { const size_t size; // size of one element const std::unique_ptr<char[]> data; // storage public: Buffer(const size_t &size, const size_t &max) : size(size), data(std::make_unique<char[]>(size * […]