How to apply the handle class of C++
This article mainly introduces the relevant knowledge of the application of C++ handle class, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on how to apply handle class of C++. Let's take a look.
Let's start with a simple string wrapper class: MyString, which puts the declaration and implementation of the function together to make it easier to view the code.
Class MyString {public: / / default constructor MyString () {std::cout