Commit 801fa95b authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: add ID comparison operator

parent 327d2c09
......@@ -44,6 +44,11 @@ bool ID::operator==(const ID &other) const
return (!id.empty() && id == other.id);
}
bool ID::operator<(const ID &other) const
{
return (id.compare(other.id) < 0);
}
std::string ID::str() const
{
return id;
......
......@@ -31,6 +31,7 @@ namespace adaptive
ID(const std::string &);
ID(uint64_t = 0);
bool operator==(const ID &) const;
bool operator<(const ID &) const;
std::string str() const;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment