System::operator==‑methode

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

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

Zie ook

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)
ParameterBeschrijving
CharsString lettertype.
ParameterTypeBeschrijving
leftChars&String literal om te vergelijken.
rightconst String&String om te vergelijken.

ReturnValue

true als strings overeenkomen, false anders.

Zie ook

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

Object and string comparison.

bool System::operator==(const SharedPtr<Object> &left, const String &right)
ParameterTypeBeschrijving
leftconst SharedPtr<Object>&Object om naar string te converteren en te vergelijken.
rightconst String&String om te vergelijken.

ReturnValue

true als de stringrepresentatie van het object gelijk is aan de string, false anders.

Zie ook

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

Bepaalt of de URI’s die door het huidige en opgegeven object worden vertegenwoordigd gelijk zijn.

bool System::operator==(const SharedPtr<Uri> &uri1, const SharedPtr<Uri> &uri2)
ParameterTypeBeschrijving
uri1const SharedPtr<Uri>&Het eerste Uri object om te vergelijken
uri2const SharedPtr<Uri>&Het tweede Uri object om te vergelijken

ReturnValue

True als URI’s gelijk zijn, anders - false

Zie ook

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

Equal-vergelijkt twee smart pointers.

template<class X,class Y> bool System::operator==(const SmartPtr<X> &x, const SmartPtr<Y> &y)
ParameterBeschrijving
XPointee-type van de eerste pointer.
YPointee-type van de tweede pointer.
ParameterTypeBeschrijving
xconst SmartPtr<X>&Eerste pointer om te vergelijken.
yconst SmartPtr<Y>&Tweede pointer om te vergelijken.

ReturnValue

True als pointers overeenkomen, false anders.

Zie ook

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

Gelijkheidsvergelijking smart pointer tegen eenvoudige (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)
ParameterBeschrijving
Xtype van smart pointer.
Ytype van eenvoudige pointer.
ParameterTypeBeschrijving
xconst SmartPtr<X>&smart pointer om te vergelijken (links).
yconst Y *pointer om te vergelijken (rechts).

ReturnValue

True als pointers overeenkomen, false anders.

Zie ook

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

Bepaalt of de opgegeven waarde gelijk is aan de waarde die wordt vertegenwoordigd door het opgegeven Nullable object door operator==() toe te passen op deze waarden.

template<typename T1,typename T2> std::enable_if<!IsNullable<T1>::value, bool>::type System::operator==(const T1 &some, const Nullable<T2> &other)
ParameterBeschrijving
T1Het type van de eerste vergelijkingswaarde
T2Het onderliggende type van het Nullable object dat de tweede vergelijkingswaarde vertegenwoordigt
ParameterTypeBeschrijving
enkeleconst T1&Een constante referentie naar de waarde die als eerste vergelijkingswaarde moet worden gebruikt.
otherconst Nullable<T2>&Een constante referentie naar het Nullable object waarvan de vertegenwoordigde waarde als tweede vergelijkingswaarde moet worden gebruikt.

ReturnValue

True als de vergelijkingsoperanden gelijk zijn, anders - false

Zie ook

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

Gelijkheidsvergelijking smart pointer tegen eenvoudige (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)
ParameterBeschrijving
Xtype van eenvoudige pointer.
Ytype van smart pointer.
ParameterTypeBeschrijving
xconst X *pointer om te vergelijken (rechts).
yconst SmartPtr<Y>&smart pointer om te vergelijken (links).

ReturnValue

True als pointers overeenkomen, false anders.

Zie ook

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

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

Zie ook

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

Bepaalt of het opgegeven Nullable object een waarde vertegenwoordigt die gelijk is aan null.

template<typename T> bool System::operator==(std::nullptr_t, const Nullable<T> &other)
ParameterTypeBeschrijving
otherstd::nullptr_tEen constante referentie naar een Nullable object om te testen

ReturnValue

True als het opgegeven object een null-waarde vertegenwoordigt, false anders

Zie ook

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

Controleert of de string null is.

bool System::operator==(std::nullptr_t, const String &str)
ParameterTypeBeschrijving
strstd::nullptr_tString om te controleren.

ReturnValue

true als string null is, false anders.

Zie ook

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

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

Zie ook

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

Controleert of smart pointer null is.

template<class X> bool System::operator==(std::nullptr_t, SmartPtr<X> const &x)
ParameterBeschrijving
XPointee type van pointer.
ParameterTypeBeschrijving
xstd::nullptr_tPointer om te controleren.

ReturnValue

True als pointer null is, false anders.

Zie ook

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

Controleert of waarde-type object (vertaalde C#-structuur, etc.) null is.

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)
ParameterBeschrijving
TWaarde‑type.
ParameterTypeBeschrijving
xstd::nullptr_tObject om te controleren.

ReturnValue

True als object null is, false anders.

Zie ook

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

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

Zie ook

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)
ParameterBeschrijving
TString pointertype.
ParameterTypeBeschrijving
leftT&String pointer om te vergelijken.
rightconst String&String om te vergelijken.

ReturnValue

true als strings overeenkomen, false anders.

Zie ook

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

Controleert of waarde-type object (vertaalde C#-structuur, etc.) null is.

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)
ParameterBeschrijving
TWaarde‑type.
ParameterTypeBeschrijving
xT const&Object om te controleren.

ReturnValue

True als object null is, false anders.

Zie ook