关于
This skill empowers Claude to implement professional-grade memory management in C++ by leveraging Resource Acquisition Is Initialization (RAII) and modern smart pointers. It provides specialized guidance on choosing between unique_ptr for exclusive ownership, shared_ptr for shared resources, and weak_ptr for breaking circular dependencies. By adhering to these patterns, the skill helps developers prevent memory leaks, ensure exception safety, and write more maintainable, modern C++ code that eliminates the need for manual delete calls.