|
| template<typename T , c_enable_if_t< std::is_base_of< CObject, T >::value, int > = 0> |
| static T * | safeMallocCObject () |
| |
| template<typename T , c_enable_if_t< std::is_base_of< CStruct, T >::value, int > = 0> |
| static T * | safeMallocCStruct () |
| |
| template<typename T , typename ... Args, c_enable_if_t< std::is_base_of< CObject, T >::value, int > = 0> |
| static T * | safeMallocTemplateCObject (Args &&... args) |
| |
| template<typename T , c_enable_if_t< std::is_base_of< CObject, T >::value, int > = 0> |
| static std::unique_ptr< T > | makeUniqueCObject () |
| |
用于安全申请CObject/CStruct及其派生类对象