RestoreStruct

This is a helper struct used by the "restore" function. It overloads the "in" operator to allow to taking a delegate.

Members

Functions

opBinary
U opBinary(U delegate() deleg)

Overloads the "in" operator. It will simply call the delegate stored in the struct passing in the given delegate and the value stored in the struct.

Variables

dg
U delegate(U delegate(), ref T) dg;

The delegate that performs the operation.

value
T* value;

A pointer to the value to pass to the delegate.

Meta