mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1180921 - Give Optional<T> Maybe<T>-like operator== semantics. r=bz
This commit is contained in:
parent
78f6d80fa0
commit
5f00046776
@ -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