System::StaticCast 메서드

System::StaticCast(const TFrom&) method

포인터가 아닌 객체에 대해 정적 캐스트를 수행합니다.

template<typename TTo,typename TFrom> std::enable_if<!std::is_same<TFrom, System::String>::value &&!IsExceptionWrapper<TFrom>::value &&!IsSmartPtr<TFrom>::value &&!std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom &obj)
매개변수설명
TTo대상 타입.
TFrom소스 타입.
매개변수형식설명
objconst TFrom&소스 객체.

ReturnValue

캐스트가 허용되는 경우 캐스트 결과.

Deprecated

하위 호환성을 위해 남겨두었습니다. 대신 ExplicitCast를 사용하십시오.

또 보기

System::StaticCast(const TFrom&) method

Exception 객체에 대해 static cast를 수행합니다.

template<typename TTo,typename TFrom> std::enable_if<IsExceptionWrapper<TFrom>::value &&IsExceptionWrapper<TTo>::value &&(std::is_convertible<TTo, TFrom>::value||std::is_base_of<TTo, TFrom>::value), TTo>::type System::StaticCast(const TFrom &obj)
매개변수설명
TTo대상 Exception 타입.
TFrom소스 Exception 타입.
매개변수형식설명
objconst TFrom&소스 포인터.

ReturnValue

캐스트가 허용되는 경우 캐스트 결과.

Deprecated

하위 호환성을 위해 남겨두었습니다. 대신 ExplicitCast를 사용하십시오.

또 보기

System::StaticCast(const TFrom *) method

산술 타입에 대한 특수화.

template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom *value)

또 보기

System::StaticCast(SmartPtr<TFrom> const&) method

SmartPtr 객체에 대해 static cast를 수행합니다.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast(SmartPtr<TFrom> const &obj)
매개변수설명
TTo대상 포인티 타입.
TFrom소스 포인티 타입.
매개변수형식설명
objSmartPtr<TFrom> const&소스 포인터.

ReturnValue

캐스트가 허용되는 경우 캐스트 결과.

Deprecated

하위 호환성을 위해 남겨두었습니다. 대신 ExplicitCast를 사용하십시오.

또 보기

System::StaticCast(SmartPtr<TFrom>) method

Objects를 Exception 객체로 static cast를 수행합니다.

template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::StaticCast(SmartPtr<TFrom> obj) noexcept
매개변수설명
TTo대상 Exception 타입.
TFromObject 타입.
매개변수형식설명
objSmartPtr<TFrom>소스 포인터.

ReturnValue

캐스트가 허용되는 경우 캐스트 결과.

Deprecated

하위 호환성을 위해 남겨두었습니다. 대신 ExplicitCast를 사용하십시오.

또 보기

System::StaticCast(std::nullptr_t) method

null 객체에 대해 정적 캐스트를 수행합니다.

template<typename TTo> CastResult<TTo>::type System::StaticCast(std::nullptr_t)
매개변수설명
TTo대상 포인티 타입.

ReturnValue

nullptr.

Deprecated

하위 호환성을 위해 남겨두었습니다. 대신 ExplicitCast를 사용하십시오.

또 보기

System::StaticCast(TFrom) method

산술 타입에 대한 특수화.

template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(TFrom value)

또 보기

System::StaticCast(TTo) method

String에서 String로의 캐스트를 처리합니다.

template<typename TTo> std::enable_if<std::is_same<TTo, System::String>::value, TTo>::type System::StaticCast(TTo value)

또 보기

System::StaticCast(WeakPtr<TFrom> const&) method

WeakPtr 객체에 대해 static cast를 수행합니다.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast(WeakPtr<TFrom> const &obj)
매개변수설명
TTo대상 포인티 타입.
TFrom소스 포인티 타입.
매개변수형식설명
objWeakPtr<TFrom> const&소스 포인터.

ReturnValue

캐스트가 허용되는 경우 캐스트 결과.

Deprecated

하위 호환성을 위해 남겨두었습니다. 대신 ExplicitCast를 사용하십시오.

또 보기