createAttributedFunction

Syntax sugar in top of AttributedFunction

Creates AttributedFunction with stored argument types that match T and stores args there before returning.

createAttributedFunction
(
alias Function
T...
)
()

Examples

void foo() {}

auto funcattr = createAttributedFunction!foo(1, "2", 3.0);

import std.typecons : tuple;
assert (tuple(funcattr.m_storedArgs) == tuple(1, "2", 3.0));

Meta