Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

findNone

Find the first item in slice which is not contained in values.

Comparable to strspn in the C standard library.

mem.findNone
pub fn findNone(comptime T: type, slice: []const T, values: []const T) ?usize

File

lib/std/mem.zig:1374

Code

pub fn findNone(comptime T: type, slice: []const T, values: []const T) ?usize {
    return findNonePos(T, slice, 0, values);
}