mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
ref: Add equality operators
This commit is contained in:
parent
9cf991f421
commit
07790fdddf
1 changed files with 10 additions and 0 deletions
|
@ -73,6 +73,16 @@ public:
|
||||||
return ref<T2>((std::shared_ptr<T2>) p);
|
return ref<T2>((std::shared_ptr<T2>) p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator == (const ref<T> & other) const
|
||||||
|
{
|
||||||
|
return p == other.p;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator != (const ref<T> & other) const
|
||||||
|
{
|
||||||
|
return p != other.p;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
template<typename T2, typename... Args>
|
template<typename T2, typename... Args>
|
||||||
|
|
Loading…
Reference in a new issue