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
Родитель 5f834ddfb2
Коммит fe6637fa00
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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)
{