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 standard library. Public Function
Returns the index of the partition point of items in relation to the given predicate.
If all elements of items satisfy the predicate the returned value is items.len.
items must contain a prefix for which all elements satisfy the predicate, and beyond which none of the elements satisfy the predicate:
[0] [len]
┌────┬────┬─/ /─┬────┬─────┬─────┬─/ /─┬─────┐
│true│true│ \ \ │true│false│false│ \ \ │false│
└────┴────┴─/ /─┴────┴─────┴─────┴─/ /─┴─────┘
├────────────────────┼───────────────────────┤
↳ zero or more ↳ zero or more
├─────┤
↳ returned index
O(log n) time complexity.
See also: binarySearch, lowerBound,upperBound,equalRange.
Returns the index of the partition point of
itemsin relation to the given predicate.itemssatisfy the predicate the returned value isitems.len.itemsmust contain a prefix for which all elements satisfy the predicate, and beyond which none of the elements satisfy the predicate:O(log n)time complexity.See also:
binarySearch,lowerBound,upperBound,equalRange.