méthode System::operator==

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

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

Voir aussi

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)
ParamètreDescription
CharsType littéral String.
ParamètreTypeDescription
leftChars&Littéral String à comparer.
rightconst String&String à comparer.

ReturnValue

vrai si les chaînes correspondent, faux sinon.

Voir aussi

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

Object and string comparison.

bool System::operator==(const SharedPtr<Object> &left, const String &right)
ParamètreTypeDescription
leftconst SharedPtr<Object>&Object à convertir en chaîne et à comparer.
rightconst String&String à comparer.

ReturnValue

vrai si la représentation sous forme de chaîne de l’objet est égale à la chaîne, faux sinon.

Voir aussi

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

Détermine si les URI représentés par les objets actuel et spécifié sont égaux.

bool System::operator==(const SharedPtr<Uri> &uri1, const SharedPtr<Uri> &uri2)
ParamètreTypeDescription
uri1const SharedPtr<Uri>&Premier objet Uri à comparer
uri2const SharedPtr<Uri>&Deuxième objet Uri à comparer

ReturnValue

Vrai si les URI sont égaux, sinon - faux

Voir aussi

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

Compare l’égalité de deux pointeurs intelligents.

template<class X,class Y> bool System::operator==(const SmartPtr<X> &x, const SmartPtr<Y> &y)
ParamètreDescription
XType pointé du premier pointeur.
YType d’objet pointé du deuxième pointeur.
ParamètreTypeDescription
xconst SmartPtr<X>&Premier pointeur à comparer.
yconst SmartPtr<Y>&Deuxième pointeur à comparer.

ReturnValue

Vrai si les pointeurs correspondent, faux sinon.

Voir aussi

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

Comparaison d’égalité du pointeur intelligent avec un pointeur simple (C).

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)
ParamètreDescription
Xtype du pointeur intelligent.
Ytype du pointeur simple.
ParamètreTypeDescription
xconst SmartPtr<X>&pointeur intelligent à comparer (gauche).
yconst Y *pointeur à comparer (droite).

ReturnValue

Vrai si les pointeurs correspondent, faux sinon.

Voir aussi

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

Détermine si la valeur spécifiée est égale à la valeur représentée par l’objet Nullable spécifié en appliquant operator==() à ces valeurs.

template<typename T1,typename T2> std::enable_if<!IsNullable<T1>::value, bool>::type System::operator==(const T1 &some, const Nullable<T2> &other)
ParamètreDescription
T1Le type de la première valeur comparande
T2Le type sous-jacent de l’objet Nullable qui représente la deuxième valeur comparande
ParamètreTypeDescription
quelquesconst T1&Une référence constante à la valeur qui doit être utilisée comme première comparande
otherconst Nullable<T2>&Une référence constante à l’objet Nullable dont la valeur représentée doit être utilisée comme deuxième comparande

ReturnValue

Vrai si les comparandes sont égaux, sinon - faux

Voir aussi

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

Comparaison d’égalité du pointeur intelligent avec un pointeur simple (C).

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)
ParamètreDescription
Xtype du pointeur simple.
Ytype du pointeur intelligent.
ParamètreTypeDescription
xconst X *pointeur à comparer (droite).
yconst SmartPtr<Y>&pointeur intelligent à comparer (gauche).

ReturnValue

Vrai si les pointeurs correspondent, faux sinon.

Voir aussi

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

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

Voir aussi

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

Détermine si l’objet Nullable spécifié représente une valeur égale à null.

template<typename T> bool System::operator==(std::nullptr_t, const Nullable<T> &other)
ParamètreTypeDescription
otherstd::nullptr_tUne référence constante à un objet Nullable à tester

ReturnValue

Vrai si l’objet spécifié représente une valeur null, faux sinon

Voir aussi

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

Vérifie si la chaîne est nulle.

bool System::operator==(std::nullptr_t, const String &str)
ParamètreTypeDescription
strstd::nullptr_tString à vérifier.

ReturnValue

vrai si la chaîne est null, faux sinon.

Voir aussi

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

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

Voir aussi

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

Vérifie si le pointeur intelligent est null.

template<class X> bool System::operator==(std::nullptr_t, SmartPtr<X> const &x)
ParamètreDescription
XType d’objet pointé du pointeur.
ParamètreTypeDescription
xstd::nullptr_tPointeur à vérifier.

ReturnValue

Vrai si le pointeur est null, faux sinon.

Voir aussi

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

Vérifie si l’objet de type valeur (structure C# traduite, etc.) est 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)
ParamètreDescription
TType valeur.
ParamètreTypeDescription
xstd::nullptr_tObject à vérifier.

ReturnValue

Vrai si l’objet est null, faux sinon.

Voir aussi

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

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

Voir aussi

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)
ParamètreDescription
Ttype de pointeur String.
ParamètreTypeDescription
leftT&pointeur String à comparer.
rightconst String&String à comparer.

ReturnValue

vrai si les chaînes correspondent, faux sinon.

Voir aussi

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

Vérifie si l’objet de type valeur (structure C# traduite, etc.) est 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)
ParamètreDescription
TType valeur.
ParamètreTypeDescription
xT const&Object à vérifier.

ReturnValue

Vrai si l’objet est null, faux sinon.

Voir aussi