TreeIter.getUserData2

setUserData and getUserData provide simple boxing around the userData field in the TreeIter struct.

Throws

TreeIterError for unsupported types or a type mismatch.

Examples

Treeiter iter = new `TreeIter()`;

iter.setUserData(20);
int i = iter.getUserData!(int)();