operator==()

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

Equality operator for ResultValueTask.

bool System::Threading::Tasks::ResultValueTask<T>::operator==(const ResultValueTask &other) const

Arguments

ParameterTypeDescription
otherconst ResultValueTask&The other ResultValueTask to compare with this instance.

Return Value

bool True if both tasks have the same result value or reference the same underlying task; otherwise, false.

Remarks

If either instance contains a direct result value, compares the results directly. Otherwise, compares the underlying task pointers.

See Also