convertTo

template convertTo(alias InterfaceTemp)
package
InterfaceTemp!F
convertTo
(
Fun
F = ReturnType!Fun
)
(
Fun fun
)

Members

Functions

convertTo
InterfaceTemp!F convertTo(Fun fun)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import std.math;
import atmosphere.pdf;

real fun(real x)
{
	// 1/sqrt(2 PI)
	enum c = 0.398942280401432677939946L;
	return c * exp(-0.5f * x * x);
}

PDF!real pdf = convertTo!PDF(&fun);

Meta