- If the two are optionals then they are both unwrapped and compared. If either are empty this returns false. And if compared with none and there's a value, also returns false
auto a = some(3); a == some(2); // false a == some(3); // true a == none; // false
Compare two optionals or an optional with some value