From 9aaba1211c95dc7e08437a7cca73452181e296d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 18 Apr 2021 22:25:17 +0200 Subject: Initial support for FRP behaviors --- src/identity.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/identity.cpp') diff --git a/src/identity.cpp b/src/identity.cpp index 374a872..a4c12f2 100644 --- a/src/identity.cpp +++ b/src/identity.cpp @@ -77,6 +77,16 @@ bool Identity::sameAs(const Identity & other) const other.p->data[0]->data->keyIdentity; } +bool Identity::operator==(const Identity & other) const +{ + return p->data == other.p->data; +} + +bool Identity::operator!=(const Identity & other) const +{ + return p->data != other.p->data; +} + optional Identity::ref() const { if (p->data.size() == 1) -- cgit v1.2.3