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

PHOTO EMBED

Wed Jun 02 2021 14:49:37 GMT+0000 (Coordinated Universal Time)

Saved by @markefontenot #cpp

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

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