operator==()

String::operator==(const String&) const method

Equality comparison operator.

bool System::String::operator==(const String &str) const

Arguments

ParameterTypeDescription
strconst String&String to compare current one to.

Return Value

true if both strings are null or both are not null and match, false otherwise.

String::operator==(std::nullptr_t) const method

Checks if string is null. Applies same logic as IsNull() call.

bool System::String::operator==(std::nullptr_t) const

Return Value

true if string is null, false otherwise.

See Also