System::ObjectExt::Equals 메서드

ObjectExt::Equals(const char_t(&), String) method

C# Object.Equals 호출을 대체하여 C++에서 모든 타입에 대해 작동합니다. 문자열 리터럴에 대한 문자열 비교를 포함한 오버로드.

template<size_t> static bool System::ObjectExt::Equals(const char_t(&obj)[N], String another)
매개변수설명
NString 리터럴 크기.
매개변수형식설명
objconst char_t(&)String 리터럴.
anotherStringString.

ReturnValue

문자열이 일치하면 True, 그렇지 않으면 false.

또 보기

ObjectExt::Equals(const double&, const double&) method

IEC 60559:1989에 따르면 NaN은 어떤 값과도, NaN 자체와도 같지 않지만, C#-style 부동소수점 비교를 에뮬레이트하여 두 NaN을 동일하게 간주합니다.

bool System::ObjectExt::Equals(const double &obj, const double &another)
매개변수형식설명
objconst double&LHS 부동 소수점 값.
다른const double&RHS 부동 소수점 값.

ReturnValue

objanother가 모두 NaN이거나 동일하면 True, 그렇지 않으면 false.

또 보기

ObjectExt::Equals(const float&, const float&) method

IEC 60559:1989에 따르면 NaN은 어떤 값과도, NaN 자체와도 같지 않지만, C#-style 부동소수점 비교를 에뮬레이트하여 두 NaN을 동일하게 간주합니다.

bool System::ObjectExt::Equals(const float &obj, const float &another)
매개변수형식설명
objconst float&LHS 부동 소수점 값.
다른const float&RHS 부동 소수점 값.

ReturnValue

objanother가 모두 NaN이거나 동일하면 True, 그렇지 않으면 false.

또 보기

ObjectExt::Equals(const T&, const T2&) method

template<typename T,typename T2> static std::enable_if<IsExceptionWrapper<T>::value, bool>::type System::ObjectExt::Equals(const T &obj, const T2 &another)

또 보기

ObjectExt::Equals(const T&, const T2&) method

C# Object.Equals 호출을 대체하여 C++의 모든 타입에서 작동합니다. 스마트 포인터 타입에 대한 오버로드.

template<typename T,typename T2> static std::enable_if<IsSmartPtr<T>::value, bool>::type System::ObjectExt::Equals(const T &obj, const T2 &another)
매개변수설명
T첫 번째 객체 타입.
T2두 번째 객체 타입.
매개변수형식설명
objconst T&첫 번째 객체.
다른const T2&두 번째 객체.

ReturnValue

객체가 동일하다고 간주되면 True, 그렇지 않으면 false.

또 보기

ObjectExt::Equals(const T&, const T2&) method

C# Object.Equals 호출을 대체하여 C++의 모든 타입에서 작동합니다. 스칼라 타입에 대한 오버로드.

template<typename T,typename T2> static std::enable_if<!IsSmartPtr<T>::value &&std::is_scalar<T>::value, bool>::type System::ObjectExt::Equals(const T &obj, const T2 &another)
매개변수설명
T첫 번째 객체 타입.
T2두 번째 객체 타입.
매개변수형식설명
objconst T&첫 번째 객체.
다른const T2&두 번째 객체.

ReturnValue

객체가 동일하다고 간주되면 True, 그렇지 않으면 false.

또 보기

ObjectExt::Equals(T, const T2&) method

C# Object.Equals 호출을 대체하여 C++의 모든 타입에서 작동합니다. 구조체 타입에 대한 오버로드.

template<typename T,typename T2> static std::enable_if<!IsExceptionWrapper<T>::value &&!IsSmartPtr<T>::value &&!std::is_scalar<T>::value, bool>::type System::ObjectExt::Equals(T obj, const T2 &another)
매개변수설명
T첫 번째 객체 타입.
T2두 번째 객체 타입.
매개변수형식설명
objT첫 번째 객체.
다른const T2&두 번째 객체.

ReturnValue

객체가 동일하다고 간주되면 True, 그렇지 않으면 false.

또 보기