System::SmartPtr::const_pointer_cast 메서드

SmartPtr::const_pointer_cast method

const_cast를 사용해 가리키는 객체를 다른 타입으로 캐스팅합니다.

template<class Y> SmartPtr<Y> System::SmartPtr<T>::const_pointer_cast() const
매개변수설명
Y가리키는 객체의 대상 타입.

ReturnValue

항상 공유 모드인 변경된 타입의 포인터.

또 보기