Type.numberOfElems

Compute number of elements for a (possibly multidimensional) static array, or 1 for other types.

class Type
final
uint
numberOfElems
(
const ref Loc loc
)

Parameters

loc Loc

for error message

Return Value

Type: uint

number of elements, uint.max on overflow

Meta