Statement.inject - multiple declarations

Function Statement.inject

Binds arguments, executes and resets the statement, in one call.

void inject(Args...) (
  Args args
)
if (allSatisfy!(isBindable, Args));

This convenience function is equivalent to:

bindAll(args);
execute();
reset();

Function Statement.inject

Binds the fields of a struct in order, executes and resets the statement, in one call.

void inject(T) (
  auto const ref T obj
)
if (is(T == struct));

Function Statement.inject

Binds iterable values in order, executes and resets the statement, in one call.

void inject(T) (
  auto ref T obj
)
if (!isBindable!T && isIterable!T);