_com_ptr_t提取器
Microsoft 专用
提取中封装的 COM 接口指针。
operator Interface*( ) const throw( );
operator Interface&( ) const;
Interface& operator*( ) const;
Interface* operator->( ) const;
Interface** operator&( ) throw( );
operator bool( ) const throw( );
备注
运算符 Interface* 返回中封装的接口指针,这可能是 NULL。
,如果指针是 NULL,根据接口 返回对中封装的接口指针,并发出错误。
operator* 允许智能指针对象操作,就好像它是实际中封装的接口,当取消引用。
operator-AMP_GT 允许智能指针对象操作,就好像它是实际中封装的接口,当取消引用。
运算符 释放所有封装的接口指针,其替换为 NULL,并返回中封装的指针的地址。 这使智能指针地址通过在一个参数它返回接口指针的函数。
运算符 bool 允许智能指针对象用于一个条件表达式。 ,如果指针不是 NULL,此运算符返回 true 。
特定于 Microsoft 的结尾