Many libraries and functions we use require us to pass raw resources instead of a resource management class object. Therefore, it is essential to design methods in resource management classes to access raw resources. Currently, there are two mainstream methods:
1. Explicit Conversion (Recommended)

This method involves designing a function that returns the internal raw resource. The method is straightforward, but we must write “.get()” when using it. Is there a solution that allows the resource management class object to directly replace the raw resource?
2. Implicit Conversion

This method allows resource management class objects to replace raw resources, but caution is required when using it. Unintentional assignments or other actions may lead to premature destruction of resources. Additionally, for pointer-type resources, frequent address retrieval and dereferencing are necessary.