CfDocument.opApply

int opApply(scope int delegate(string, CfNode *) @safe dg) @safe

Enables foreach iteration over root members.

Example:

auto doc = parseCFDocument(`a = 1, b = 2`);
foreach (key, value; doc) {
    writefln("%s = %s", key, value.as!long);
}