Multiple Destructors with C++20

Get an overview of how multiple destructors are implemented with C++ 20.

We still have a class template, but instead of std::conditional, we use the trailing requires clause to provide an overload for the destructor.

Remember we learned earlier that, in class templates, we can provide function overloads using different constraints. This is true even for constructors and destructors.

Get hands-on with 1200+ tech skills courses.