it must be obvious but I can't find the answer:
Does e.g.
std::make_unique<double[]>(1000)
allways value-initialize the elements? Well, I looked into the implementation and clang
as well as g++
are using
new T[size]()
doing value-initialization.
But I can't find that a conforming implementation of C++14 / 17 has to do this.
Any hints?
Aucun commentaire:
Enregistrer un commentaire