How does the speed of the default constructor, the copy constructor and the move constructor compare to each other for an aggregate type like std::array ?
Intuitively, I would say move > default > copy (the greater the faster).
- Is that correct for
std::array? - If there is a correct order for
std::array, can we assume it is the same for all other aggregates?
Aucun commentaire:
Enregistrer un commentaire