isOrderingComparable

Determines whether values of type T can be compared for ordering, i.e. using >, >=, < or <= binary operators.

enum bool isOrderingComparable(T);

Return Value

$(D_KEYWORD true) if T can be compared for ordering, $(D_KEYWORD false) otherwise.

Examples

static assert(isOrderingComparable!int);

Meta