Condividi tramite


ComPtr::operator-> Operator

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at ComPtr::operator-> Operator.

Retrieves a pointer to the type specified by the current template parameter.

Syntax

WRL_NOTHROW Microsoft::WRL::Details::RemoveIUnknown<InterfaceType>* operator->() const;  

Return Value

Pointer to the type specified by the current template type name.

Remarks

This helper function removes unnecessary overhead caused by using the STDMETHOD macro. This function makes IUnknown types private instead of virtual.

Requirements

Header: client.h

Namespace: Microsoft::WRL

See Also

ComPtr Class