Skip to content

D3128: add allocator parameters to algorithm synopses and documentation#133

Merged
pratzl merged 1 commit intomainfrom
algo_alloc
Apr 16, 2026
Merged

D3128: add allocator parameters to algorithm synopses and documentation#133
pratzl merged 1 commit intomainfrom
algo_alloc

Conversation

@pratzl
Copy link
Copy Markdown
Contributor

@pratzl pratzl commented Apr 16, 2026

Add Alloc template parameter (defaulting to std::allocator) and const Alloc& alloc parameter to all algorithms that use internal dynamic storage:

Traversal:

  • breadth_first_search (single- and multi-source)
  • depth_first_search
  • topological_sort (single-source, multi-source, full-graph)

Shortest paths:

  • dijkstra_shortest_paths (single- and multi-source)
  • dijkstra_shortest_distances (single- and multi-source)

Components:

  • articulation_points
  • biconnected_components
  • connected_components
  • kosaraju (both overloads)
  • tarjan_scc

MST:

  • kruskal (both overloads)
  • inplace_kruskal (both overloads)
  • prim

Update algorithms.tex: add alloc remarks to each affected algorithm section and fix lstinputlisting line ranges for connected_components.hpp and mst.hpp after synopsis expansion.

Add Alloc template parameter (defaulting to std::allocator<byte>) and
const Alloc& alloc parameter to all algorithms that use internal dynamic
storage:

Traversal:
- breadth_first_search (single- and multi-source)
- depth_first_search
- topological_sort (single-source, multi-source, full-graph)

Shortest paths:
- dijkstra_shortest_paths (single- and multi-source)
- dijkstra_shortest_distances (single- and multi-source)

Components:
- articulation_points
- biconnected_components
- connected_components
- kosaraju (both overloads)
- tarjan_scc

MST:
- kruskal (both overloads)
- inplace_kruskal (both overloads)
- prim

Update algorithms.tex: add alloc remarks to each affected algorithm
section and fix lstinputlisting line ranges for connected_components.hpp
and mst.hpp after synopsis expansion.
@pratzl pratzl merged commit 39fbb7e into main Apr 16, 2026
1 check passed
@pratzl pratzl deleted the algo_alloc branch April 16, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant