grain.utility

A module of utility functions

Public Imports

ldc.attributes
public import ldc.attributes : optStrategy;

Members

Functions

castArray
Dst[N] castArray(Src[N] src)

unsafe cast of array (e.g., int[] -> size_t[])

fromTuple
auto fromTuple(T t)

single element tuple to element. the other tuple to tuple

toTuple
auto toTuple(T t)

non-tuple to tuple. tuple to tuple

Structs

optStrategy
struct optStrategy

usage @optStrategy("none")

Meta