System::BoxedValueDetail Namespace Reference

Functions

template<typename T >
std::enable_if< detail::has_operator_equal< T >::value, bool >::type Equals (T value1, T value2)
 
template<typename T >
std::enable_if< detail::has_only_method_equals< T >::value, bool >::type Equals (T value1, T value2)
 
template<>
bool Equals< float > (float value1, float value2)
 
template<>
bool Equals< double > (double value1, double value2)
 

Function Documentation

◆ Equals() [1/2]

template<typename T >
std::enable_if<detail::has_operator_equal<T>::value, bool>::type System::BoxedValueDetail::Equals ( value1,
value2 
)

Determines the equality of the specified value using operator==().

Parameters
value1The first comparand
value2The second comparand
Returns
True if the specified value are equal as determined by operator==(), otherwise - false
Template Parameters
Thetype of the values being compared

◆ Equals() [2/2]

template<typename T >
std::enable_if<detail::has_only_method_equals<T>::value, bool>::type System::BoxedValueDetail::Equals ( value1,
value2 
)

Determines the equality of the specified value using method System::Object::Equals().

Parameters
value1The first comparand
value2The second comparand
Returns
True if the specified value are equal as determined by method Equals(), otherwise - false
Template Parameters
Thetype of the values being compared

◆ Equals< double >()

template<>
bool System::BoxedValueDetail::Equals< double > ( double  value1,
double  value2 
)
inline

Compares two double-precision floating-point values.

Parameters
value1The first value to compare
value2The second value to compare
Returns
True if both values are NAN or are equal, otherwise - false

◆ Equals< float >()

template<>
bool System::BoxedValueDetail::Equals< float > ( float  value1,
float  value2 
)
inline

Compares two single-precision floating-point values.

Parameters
value1The first value to compare
value2The second value to compare
Returns
True if both values are NAN or are equal, otherwise - false