Skip to content
GraphInitWithDeepCopyT

GraphInitWithDeepCopyT

Description

Type-flavoured GraphInitWithDeepCopy — same contract, but the first argument names the target Graph(T) so the literal carries the typed compound-literal cast.

Success

Returns a typed deep-copy graph wired to the supplied callbacks.

Failure

Cannot fail at construction; allocation failures surface from later inserts.

Usage example (Cross-references)

Usage examples (Cross-references)
        StrGraph graph_b = GraphInitT(graph_b, &alloc);
        StrGraph graph_c = GraphInitWithDeepCopy(str_init_copy, str_deinit, &alloc);
        StrGraph graph_d = GraphInitWithDeepCopyT(graph_d, str_init_copy, str_deinit, &alloc);
        StrGraph graph_e = GraphInit(&aligned_8);
        StrGraph graph_f = GraphInitT(graph_f, &aligned_16);
        StrGraph graph_f = GraphInitT(graph_f, &aligned_16);
        StrGraph graph_g = GraphInitWithDeepCopy(str_init_copy, str_deinit, &aligned_32);
        StrGraph graph_h = GraphInitWithDeepCopyT(graph_h, str_init_copy, str_deinit, &aligned_64);
    
        // intentional bypass: the inner `slots` / `free_indices` /
Last updated on