Skip to content
Snippets Groups Projects
Commit eec398db authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Support eic::Index to be used as map key value

parent dfac21a0
Branches
No related tags found
1 merge request!54Support eic::Index to be used as map key value
Pipeline #19983 failed
......@@ -12,6 +12,8 @@ workflow:
default:
before_script:
- mkdir -p images && mkdir -p doc/
tags:
- phy
artifacts:
paths:
- images/
......
......@@ -43,6 +43,8 @@ components:
bool equals(const eic::Index& rhs) const {return rhs.source == source && rhs.value == value;}\n
bool operator==(const eic::Index& rhs) const {return equals(rhs);}\n
bool operator!=(const eic::Index& rhs) const {return !equals(rhs);}\n
bool operator<(const eic::Index& rhs) const {return long_form() < rhs.long_form();}\n
int64_t long_form() const {int64_t l = static_cast<int64_t>(source) << 32 | value; return l;}\n
explicit operator bool() const {return valid();}
"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment