isVersion

Detect version identifiers

This is a template to check if a version identifier is available.

template isVersion (
string ver
)

Examples

static if(isVersion!"unittest")
{
     // code with version unittest ...
}
assertTrue(isVersion!"unittest");
assertFalse(isVersion!"this_shouldnt_be_a_version_identifier");

Meta