count.count

  1. size_t count(Slices slices)
    template count(alias fun)
    @optmath
    static if(__traits(isSame, naryFun!fun, fun))
    @optmath
    size_t
    count
    (
    Slices...
    )
    (
    scope Slices slices
    )
    if (
    Slices.length
    )
  2. alias count = .count!(naryFun!fun)

Parameters

slices Slices

One or more slices, ranges, and arrays.

Return Value

Type: size_t

The number elements according to the fun.

Constraints: All slices must have the same shape.

Meta