Skip to content

GraphSlot

Description

Typed slot layout used inside Graph(T). Same field order and field sizes as GenericGraphSlot, but data is typed T * instead of void *. This lets GRAPH_NODE_TYPE(g) recover T from the slot itself without needing a separate sentinel field on the graph.

Usage example (Cross-references)

Usage examples (Cross-references)
    #define Graph(T)                                                                                                       \
        struct {                                                                                                           \
            Vec(GraphSlot(T)) slots;                                                                                       \
            GraphFreeIndices         free_indices;                                                                         \
            GraphPendingEdgeRemovals pending_edge_removals;                                                                \
Last updated on