다음을 통해 공유


IDebugHostType::GetPointerKind 메서드(dbgmodel.h)

포인터 형식의 경우 GetPointerKind 메서드는 포인터 종류를 반환합니다. 이 값은 PointerKind 열거형에 의해 정의되며 다음 값 중 하나입니다.

열거형 의미
PointerStandard 표준 C/C++ 포인터를 나타냅니다. *
PointerReference C/C++ 참조(const 여부)를 나타냅니다. - &
PointerRValueReference C/C++ rvalue 참조(const 여부)를 나타냅니다. - &&
PointerCXHat C++/CX hat 관리 포인터(const 여부)를 나타냅니다. - ^

구문

HRESULT GetPointerKind(
  PointerKind *pointerKind
);

매개 변수

pointerKind

포인터 종류는 PointerKind 열거형의 값으로 여기에 반환됩니다.

반환 값

이 메서드는 성공 또는 실패를 나타내는 HRESULT를 반환합니다.

설명

예제 코드

ComPtr<IDebugHostType> spType; /* get a type for something that's a pointer 
                                  or reference (see FindTypeByName) */

PointerKind pk;
if (SUCCEEDED(spType->GetPointerKind(&pk)))
{
    // pk indicates the kind of pointer:
    //      PointerStandard (it's a '*')
    //      PointerReference (it's a '&')
    //      etc...
}

요구 사항

요구 사항
헤더 dbgmodel.h

추가 정보

IDebugHostType 인터페이스