mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 18:38:52 +02: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 set(const code &code);
|
||||||
void del(const code &code);
|
void del(const code &code);
|
||||||
|
void operator|=(const code &) &;
|
||||||
|
|
||||||
conforms() = default;
|
conforms() = default;
|
||||||
conforms(const event &);
|
conforms(const event &);
|
||||||
|
|
|
@ -650,6 +650,13 @@ ircd::m::event::conforms::conforms(const event &e)
|
||||||
set(DEPTH_ZERO);
|
set(DEPTH_ZERO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ircd::m::event::conforms::operator|=(const code &code)
|
||||||
|
&
|
||||||
|
{
|
||||||
|
set(code);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ircd::m::event::conforms::del(const code &code)
|
ircd::m::event::conforms::del(const code &code)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue