System::operator== method

System::operator==(ArraySegment<T>, ArraySegment<T>) method

template<typename T> bool System::operator==(ArraySegment<T> a, ArraySegment<T> b)

See Also

System::operator==(Chars&, const String&) method

String comparison.

template<class Chars,typename std::enable_if< IsStringLiteral< Chars, char_t >::value >::type *> bool System::operator==(Chars &left, const String &right)
ParameterDescription
CharsString literal type.
ParameterTypeDescription
leftChars&String literal to compare.
rightconst String&String to compare.

ReturnValue

true if strings match, false otherwise.

See Also

System::operator==(const SharedPtr<Object>&, const String&) method

Object and string comparison.

bool System::operator==(const SharedPtr<Object> &left, const String &right)
ParameterTypeDescription
leftconst SharedPtr<Object>&Object to convert to string and compare.
rightconst String&String to compare.

ReturnValue

true if object string representation equals to string, false otherwise.

See Also

System::operator==(const SharedPtr<Uri>&, const SharedPtr<Uri>&) method

Determines if the URIs represented by the current and specified objects are equal.

bool System::operator==(const SharedPtr<Uri> &uri1, const SharedPtr<Uri> &uri2)
ParameterTypeDescription
uri1const SharedPtr<Uri>&The first Uri object to compare
uri2const SharedPtr<Uri>&The second Uri object to compare

ReturnValue

True if URIs are equal, otherwise - false

See Also

System::operator==(const SmartPtr<X>&, const SmartPtr<Y>&) method

Equal-compares two smart pointers.

template<class X,class Y> bool System::operator==(const SmartPtr<X> &x, const SmartPtr<Y> &y)
ParameterDescription
XPointee type of first pointer.
YPointee type of second pointer.
ParameterTypeDescription
xconst SmartPtr<X>&First pointer to compare.
yconst SmartPtr<Y>&Second pointer to compare.

ReturnValue

True if pointers match, false otherwise.

See Also

System::operator==(const SmartPtr<X>&, const Y *) method

Equality comparison smart pointer against simple (C) pointer.

template<class X,class Y> std::enable_if<std::is_base_of<Object, Y>::value &&detail::has_no_operator_equal<X, Y>::value, bool>::type System::operator==(const SmartPtr<X> &x, const Y *y)
ParameterDescription
Xtype of smart pointer.
Ytype of simple pointer.
ParameterTypeDescription
xconst SmartPtr<X>&smart pointer to compare (left).
yconst Y *pointer to compare (right).

ReturnValue

True if pointers match, false otherwise.

See Also

System::operator==(const T1&, const Nullable<T2>&) method

Determines if the specified value is equal to the value represented by the specified Nullable object by applying operator==() to these values.

template<typename T1,typename T2> std::enable_if<!IsNullable<T1>::value, bool>::type System::operator==(const T1 &some, const Nullable<T2> &other)
ParameterDescription
T1The type of the first comparand value
T2The underlying type of the Nullable object that represents the second comparand value
ParameterTypeDescription
someconst T1&A constant reference to the value that is to be used as the first comparand
otherconst Nullable<T2>&A constant reference to the Nullable object the represented value of which is to be used as the second comparand

ReturnValue

True if the comparands are equal, otherwise - false

See Also

System::operator==(const X *, const SmartPtr<Y>&) method

Equality comparison smart pointer against simple (C) pointer.

template<class X,class Y> std::enable_if<std::is_base_of<Object, X>::value &&detail::has_no_operator_equal<X, Y>::value, bool>::type System::operator==(const X *x, const SmartPtr<Y> &y)
ParameterDescription
Xtype of simple pointer.
Ytype of smart pointer.
ParameterTypeDescription
xconst X *pointer to compare (right).
yconst SmartPtr<Y>&smart pointer to compare (left).

ReturnValue

True if pointers match, false otherwise.

See Also

System::operator==(std::nullptr_t, const DateTimeOffset&) method

bool System::operator==(std::nullptr_t, const DateTimeOffset &)

See Also

System::operator==(std::nullptr_t, const Nullable<T>&) method

Determines if the specified Nullable object represents a value that is equal to null.

template<typename T> bool System::operator==(std::nullptr_t, const Nullable<T> &other)
ParameterTypeDescription
otherstd::nullptr_tA constant reference to an Nullable object to test

ReturnValue

True if the specified object represents null value, false otherwise

See Also

System::operator==(std::nullptr_t, const String&) method

Checks if string is null.

bool System::operator==(std::nullptr_t, const String &str)
ParameterTypeDescription
strstd::nullptr_tString to check.

ReturnValue

true if string is null, false otherwise.

See Also

System::operator==(std::nullptr_t, DateTime) method

bool System::operator==(std::nullptr_t, DateTime)

See Also

System::operator==(std::nullptr_t, SmartPtr<X> const&) method

Checks if smart pointer is null.

template<class X> bool System::operator==(std::nullptr_t, SmartPtr<X> const &x)
ParameterDescription
XPointee type of pointer.
ParameterTypeDescription
xstd::nullptr_tPointer to check.

ReturnValue

True if pointer is null, false otherwise.

See Also

System::operator==(std::nullptr_t, T const&) method

Checks if value type object (translated C# structure, etc.) is null.

template<class T> std::enable_if<!std::is_scalar<T>::value &&!std::is_pointer<T>::value &&!std::is_array<T>::value &&detail::has_method_is_null<T>::value, bool>::type System::operator==(std::nullptr_t, T const &x)
ParameterDescription
TValue type.
ParameterTypeDescription
xstd::nullptr_tObject to check.

ReturnValue

True if object is null, false otherwise.

See Also

System::operator==(std::nullptr_t, TimeSpan) method

bool System::operator==(std::nullptr_t, TimeSpan)

See Also

System::operator==(T&, const String&) method

String comparison.

template<class T,typename std::enable_if< IsStringPointer< T, char_t >::value >::type *> bool System::operator==(T &left, const String &right)
ParameterDescription
TString pointer type.
ParameterTypeDescription
leftT&String pointer to compare.
rightconst String&String to compare.

ReturnValue

true if strings match, false otherwise.

See Also

System::operator==(T const&, std::nullptr_t) method

Checks if value type object (translated C# structure, etc.) is null.

template<class T> std::enable_if<!std::is_scalar<T>::value &&!std::is_pointer<T>::value &&!std::is_array<T>::value &&detail::has_method_is_null<T>::value, bool>::type System::operator==(T const &x, std::nullptr_t)
ParameterDescription
TValue type.
ParameterTypeDescription
xT const&Object to check.

ReturnValue

True if object is null, false otherwise.

See Also