Skip to content

GraphInitT

Description

Type-flavoured GraphInit for a typedef’d Graph(T); the first argument names the target graph type so the literal carries the correct compound-literal type.

Success

Returns a typed empty graph value, allocator-bound, callbacks NULL.

Failure

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

Usage example (Cross-references)

Usage examples (Cross-references)
    
        StrGraph graph_a = GraphInit(&alloc);
        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_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_g = GraphInitWithDeepCopy(str_init_copy, str_deinit, &aligned_32);
        StrGraph graph_h = GraphInitWithDeepCopyT(graph_h, str_init_copy, str_deinit, &aligned_64);
Last updated on