ifTestable

enum ifTestable (
T
alias pred = a => a
)

Return Value

true iff the type T can be tested in an if-expression, that is if if (pred(T.init)) {} is compilable.

Meta

Suggestion Box / Bug Report