mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 08:21:09 +01:00
ircd:🆑 Add argument-ordered ergonomic constructor.
This commit is contained in:
parent
21472fcc5b
commit
000102cf4e
1 changed files with 13 additions and 0 deletions
|
@ -164,6 +164,9 @@ struct ircd::cl::exec
|
|||
// Execute a kernel on a range.
|
||||
exec(kern &, const kern::range &, const opts & = opts_default);
|
||||
|
||||
// Execute a kernel on a range.
|
||||
exec(kern &, const opts &, const kern::range &);
|
||||
|
||||
// Execute a barrier.
|
||||
exec(const opts &);
|
||||
};
|
||||
|
@ -253,3 +256,13 @@ ircd::cl::kern::kern(code &c,
|
|||
for(uint i(0); i < argc; ++i)
|
||||
this->arg(i, *datas[i]);
|
||||
}
|
||||
|
||||
inline
|
||||
ircd::cl::exec::exec(kern &kern,
|
||||
const opts &opts,
|
||||
const kern::range &range)
|
||||
:exec
|
||||
{
|
||||
kern, range, opts
|
||||
}
|
||||
{}
|
||||
|
|
Loading…
Reference in a new issue