mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️ Add convenience operator|= to event::conforms for masking.
This commit is contained in:
parent
ef9646e719
commit
8f086aaed9
2 changed files with 8 additions and 0 deletions
|
@ -148,6 +148,7 @@ struct ircd::m::event::conforms
|
|||
|
||||
void set(const code &code);
|
||||
void del(const code &code);
|
||||
void operator|=(const code &) &;
|
||||
|
||||
conforms() = default;
|
||||
conforms(const event &);
|
||||
|
|
|
@ -650,6 +650,13 @@ ircd::m::event::conforms::conforms(const event &e)
|
|||
set(DEPTH_ZERO);
|
||||
}
|
||||
|
||||
void
|
||||
ircd::m::event::conforms::operator|=(const code &code)
|
||||
&
|
||||
{
|
||||
set(code);
|
||||
}
|
||||
|
||||
void
|
||||
ircd::m::event::conforms::del(const code &code)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue