#includeIn this example, we define a class MyObject and then create a StaticRefPtr object named myObj that points to a new instance of MyObject. We can then use myObj like any other pointer to access and manipulate the object. StaticRefPtr is part of the Poco C++ Libraries, which is a collection of open-source C++ class libraries that provide a variety of functionality for building robust, scalable, and secure systems.class MyObject { public: MyObject() { cout << "MyObject::MyObject()" << endl; } ~MyObject() { cout << "MyObject::~MyObject()" << endl; } }; int main() { StaticRefPtr myObj = new MyObject(); // do some work with myObj return 0; }