зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1180921 - Give Optional<T> Maybe<T>-like operator== semantics. r=bz
This commit is contained in:
Родитель
5f834ddfb2
Коммит
fe6637fa00
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче