Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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. Private Function

lessThanComparison

Private Function
std.priority_dequeue.lessThanComparison
fn lessThanComparison(context: void, a: u32, b: u32) Order

If a min heap is constructed from slice {5, 8, 2, 9, 7, 1, 4, 4} using this method, then the elements will be in order: {1, 2, 4, 4, 5, 7, 8, 9}

Params

  • context: void
  • a: u32
  • b: u32

File

priority_dequeue.zig:455
455
456
457
458
fn lessThanComparison(context: void, a: u32, b: u32) Order {
    _ = context;
    return std.math.order(a, b);
}