What is the meaning of a C++ Wrapper Class? - Stack Overflow

PHOTO EMBED

Wed May 26 2021 22:05:48 GMT+0000 (Coordinated Universal Time)

Saved by @STS #c #c++ #wrapper

class int_ptr_wrapper
{
public:
    int_ptr_wrapper(int value = 0) :
    mInt(new int(value))
    {}

    // note! needs copy-constructor and copy-assignment operator!

    ~int_ptr_wrapper()
    {
        delete mInt;
    }

private:
    int* mInt;
};
content_copyCOPY

Basis-Wrapper!?!

https://stackoverflow.com/questions/5307169/what-is-the-meaning-of-a-c-wrapper-class