RealFunction

Template for converting a function to Function instance.

class RealFunction : Function!(A, B)(
A = ParameterTypeTuple!f[0]
B = ReturnType!f
) {}

Members

Functions

opCall
B opCall(A x)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin Singleton
Undocumented in source.

Mixed In Members

From mixin Singleton

get
typeof(this) get()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

static int f(long x)
{
	return cast(int)((x >> 32) ^ (x & ((1UL << 32) - 1)));
}
static assert (is (RealFunction!f : Function!(long, int)));
static assert (is (RealFunction!(f, int, int) : Function!(int, int)));
static assert (is (RealFunction!(f, int, long) : Function!(int, long)));
static assert (is (RealFunction!(f, long, long) : Function!(long, long)));

Meta