group: or original flags with additional flags
This commit is contained in:
@@ -57,6 +57,19 @@ public:
|
||||
return f_ & f;
|
||||
}
|
||||
|
||||
InputFlags operator|(const InputFlags &f) const
|
||||
{
|
||||
InputFlags i = *this;
|
||||
i |= f;
|
||||
return i;
|
||||
}
|
||||
|
||||
InputFlags &operator|=(const InputFlags &f)
|
||||
{
|
||||
f_ |= f.f_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
uint64_t f_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user