Commit 85920019 authored by Dominik Charousset's avatar Dominik Charousset

Add `uint_value` getter for atom constants

parent 702041e6
...@@ -53,6 +53,9 @@ struct atom_constant { ...@@ -53,6 +53,9 @@ struct atom_constant {
constexpr operator atom_value() const { constexpr operator atom_value() const {
return V; return V;
} }
static constexpr uint64_t uint_value() {
return static_cast<uint64_t>(V);
}
/// Returns an instance *of this constant* (*not* an `atom_value`). /// Returns an instance *of this constant* (*not* an `atom_value`).
static const atom_constant value; static const atom_constant value;
}; };
......
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