The OpenD Programming Language

isFileHandle

Indicates whether T is a file handle, i.e. the type is implicitly convertable to File or a pointer to a core.stdc.stdio.FILE.

template isFileHandle (
T
) {
enum isFileHandle;
}

Return Value

true if T is a file handle, false otherwise.

Examples

static assert(isFileHandle!(FILE*));
static assert(isFileHandle!(File));

Meta