0
0
Fork 0
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:
Jason Volk 2018-02-27 20:55:59 -08:00
parent ef9646e719
commit 8f086aaed9
2 changed files with 8 additions and 0 deletions

View file

@ -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 &);

View file

@ -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)
{