operator!=()

System::operator!=(ArraySegment<T>, ArraySegment<T>) function

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

System::operator!=(std::nullptr_t, DateTime) function

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

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

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

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

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

template<typename T> bool System::operator!=(std::nullptr_t, const Nullable<T> &other)

Arguments

ParameterTypeDescription
otherstd::nullptr_tA constant reference to an Nullable object to test

Return Value

True if the specified object represents non-null value, false otherwise

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

Determines if the specified value is not 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)

Template parameters

ParameterDescription
T1The type of the first comparand value
T2The underlying type of the Nullable object that represents the second comparand value

Arguments

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

Return Value

True if the comparands are not equal, otherwise - false

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

Non-equal-compares two smart pointers.

template<class X,class Y> bool System::operator!=(const SmartPtr<X> &x, const SmartPtr<Y> &y)

Template parameters

ParameterDescription
XPointee type of first pointer.
YPointee type of second pointer.

Arguments

ParameterTypeDescription
xconst SmartPtr<X>&First pointer to compare.
yconst SmartPtr<Y>&Second pointer to compare.

Return Value

False if pointers match, true otherwise.

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

Checks if smart pointer is not null.

template<class X> bool System::operator!=(SmartPtr<X> const &x, std::nullptr_t)

Template parameters

ParameterDescription
XPointee type of pointer.

Arguments

ParameterTypeDescription
xSmartPtr<X> const&Pointer to check.

Return Value

False if pointer is null, true otherwise.

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

Checks if smart pointer is not null.

template<class X> bool System::operator!=(std::nullptr_t, SmartPtr<X> const &x)

Template parameters

ParameterDescription
XPointee type of pointer.

Arguments

ParameterTypeDescription
xstd::nullptr_tPointer to check.

Return Value

False if pointer is null, true otherwise.

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

Inequality 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)

Template parameters

ParameterDescription
Xtype of smart pointer.
Ytype of simple pointer.

Arguments

ParameterTypeDescription
xconst SmartPtr<X>&smart pointer to compare (left).
yconst Y *pointer to compare (right).

Return Value

False if pointers match, true otherwise.

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

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)

Template parameters

ParameterDescription
Xtype of simple pointer.
Ytype of smart pointer.

Arguments

ParameterTypeDescription
xconst X *pointer to compare (right).
yconst SmartPtr<Y>&smart pointer to compare (left).

Return Value

False if pointers match, true otherwise.

System::operator!=(Chars&, const String&) function

String comparison.

template<class Chars,typename std::enable_if< IsStringLiteral< Chars, char_t >::value >::type *> bool System::operator!=(Chars &left, const String &right)

Template parameters

ParameterDescription
CharsString literal type.

Arguments

ParameterTypeDescription
leftChars&String literal to compare.
rightconst String&String to compare.

Return Value

false if strings match, true otherwise.

System::operator!=(T&, const String&) function

String comparison.

template<class T,typename std::enable_if< IsStringPointer< T, char_t >::value >::type *> bool System::operator!=(T &left, const String &right)

Template parameters

ParameterDescription
TString pointer type.

Arguments

ParameterTypeDescription
leftT&String pointer to compare.
rightconst String&String to compare.

Return Value

false if strings match, true otherwise.

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

Object and string comparison.

bool System::operator!=(const SharedPtr<Object> &left, const String &right)

Arguments

ParameterTypeDescription
leftconst SharedPtr<Object>&Object to convert to string and compare.
rightconst String&String to compare.

Return Value

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

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

Checks if string is null.

bool System::operator!=(std::nullptr_t, const String &str)

Arguments

ParameterTypeDescription
strstd::nullptr_tString to check.

Return Value

false if string is null, true otherwise.

System::operator!=(std::nullptr_t, TimeSpan) function

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

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

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

bool System::operator!=(const SharedPtr<Uri> &uri1, const SharedPtr<Uri> &uri2)

Arguments

ParameterTypeDescription
uri1const SharedPtr<Uri>&The first Uri object to compare
uri2const SharedPtr<Uri>&The second Uri object to compare

Return Value

True if URIs not equal, otherwise - false

See Also