Scalar `new T` vs array `new T[1]`
If T doesn’t have trivial destructor, then for usual compiler implementations, new T[1] has an overhead compared to new T. The array version will allocate a little bit larger memory area, to store the number of elements, so at delete[], it knows how many destructors must be called. So, it has an overhead: a little … Read more