mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180921 - Give Optional<T> Maybe<T>-like operator== semantics. r=bz
This commit is contained in:
parent
07ac79c0f2
commit
8145ba3977
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user