Bug 1180921 - Give Optional<T> Maybe<T>-like operator== semantics. r=bz

This commit is contained in:
Bobby Holley 2015-07-07 15:44:07 -07:00
parent 07ac79c0f2
commit 8145ba3977

View File

@ -119,6 +119,11 @@ public:
mImpl.emplace(aValue);
}
bool operator==(const Optional_base<T, InternalType>& aOther) const
{
return mImpl == aOther.mImpl;
}
template<typename T1, typename T2>
explicit Optional_base(const T1& aValue1, const T2& aValue2)
{