Skip to content

IterNext

Description

Propagating advance by one position in the iteration direction.

Success

Position is updated, returns true.

Failure

Iterator is already exhausted, returns false.

Usage example (Cross-references)

Usage examples (Cross-references)
        const u8 buf[3] = {0};
        BufIter  it     = BufIterFromMemory(buf, 3);
        if (!IterNext(&it) || IterIndex(&it) != 1) {
            return false;
        }
            return false;
        }
        if (!IterNext(&it) || IterIndex(&it) != 2) {
            return false;
        }
    /// TAGS: StrIter, Next, Advance, Alias
    ///
    #define StrIterNext(si) IterNext((si))
    
    ///
Last updated on