Skip to content
MapFindNextForKey

MapFindNextForKey

MapFindNextForKey

Description

Advance a per-key cursor to the next value for the same key.

Parameters

Name Direction Description
m in Map.
key in Key being queried.
cursor in Current cursor.

Success

Cursor positioned at the next value for the same key.

Failure

MapValueCursorInvalid() if there are no more values.

Usage example (Cross-references)

Usage examples (Cross-references)
            value_sum += *value_ptr;
            seen      += 1;
            cursor     = MapFindNextForKey(&map, 4, cursor);
        }
Last updated on