What is trivial destructor?

Trivial destructor The destructor for class T is trivial if all of the following is true: The destructor is not user-provided (meaning, it is either implicitly declared, or explicitly defined as defaulted on its first declaration) The destructor is not virtual (that is, the base class destructor is not virtual)

Sizin İçin Seçtik  How many types of constructors are there in C++?

Leave a Reply

Your email address will not be published. Required fields are marked *