diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-04-18 22:25:17 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-04-18 22:28:59 +0200 |
commit | 9aaba1211c95dc7e08437a7cca73452181e296d6 (patch) | |
tree | b11cb72c1515fb7b284e98708d6b6f4a8fbae3ab /src/identity.cpp | |
parent | c3d6046b25ef0786b8d2919dfa9db4eb05114501 (diff) |
Initial support for FRP behaviors
Diffstat (limited to 'src/identity.cpp')
-rw-r--r-- | src/identity.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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<Ref> Identity::ref() const { if (p->data.size() == 1) |