We can define a class with its destructor deleted:
class A {
public :
A() = default;
~A() = delete;
};
Then, we cannot define a variable of type A. However, we can use new operator to allocate and construct an object of type A in the heap and we can never delete it. I want to know whether this class has any usage in the real-world?