Enum member isGeoScalar

True exactly for the scalar types supported by the geo-d core.

enum isGeoScalar(T) = is(T == int) || is(T == long) || is(T == float) || is(T == double) || is(T == real);

The supported scalar domain is:

int long float double real

This trait describes membership in the public scalar domain, not general numeric convertibility. Qualified scalar types, enums, and user-defined numeric-like types are deliberately excluded.

Example

Example checking the exact public scalar domain.

import geo;

static assert(isGeoScalar!int);
static assert(isGeoScalar!long);
static assert(isGeoScalar!float);
static assert(isGeoScalar!double);
static assert(isGeoScalar!real);

static assert(!isGeoScalar!uint);
static assert(!isGeoScalar!(const int));