System::Compare method

System::Compare(const TA&, const TB&) method

두 값을 비교합니다.

template<typename TA,typename TB> std::enable_if_t<!std::is_floating_point<TA>::value &&!std::is_floating_point<TB>::value, int> System::Compare(const TA &a, const TB &b)
매개변수설명
TA첫 번째 비교 대상의 타입
TB두 번째 비교 대상의 타입
매개변수형식설명
aconst TA&첫 번째 비교값
bconst TB&두 번째 비교값

ReturnValue

-1 if a compares less than b; 0 if the values are equal; 1 if a compares greater than b

또 보기

System::Compare(const TA&, const TB&) method

두 개의 부동 소수점 값을 비교합니다.

template<typename TA,typename TB> std::enable_if_t<std::is_floating_point<TA>::value &&std::is_floating_point<TB>::value, int> System::Compare(const TA &a, const TB &b)
매개변수설명
TA첫 번째 비교 대상의 타입
TB두 번째 비교 대상의 타입
매개변수형식설명
aconst TA&첫 번째 비교값
bconst TB&두 번째 비교값

ReturnValue

-1 if a compares less than b; 0 if the values are equal; 1 if a compares greater than b

또 보기