GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 4 / 0 / 4
Functions: 100.0% 4 / 0 / 4
Branches: -% 0 / 0 / 0

src/tree/ds/lib.hpp
Line Branch Exec Source
1 #pragma once
2
3 #include "../../graph/ds/graph_c/lib.hpp"
4
5 namespace tifa_libs {
6
7 template <graph_c graph_t>
8 struct tree : graph_t {
9 u32 root;
10 16 CEXP tree(graph_t CR g, u32 root = 0) NE : graph_t(g), root(root) {}
11 CEXP tree(graph_t&& g, u32 root = 0) NE : graph_t(std::move(g)), root(root) {}
12 470 CEXPE tree(u32 n, u32 root = 0) NE : graph_t(n), root(root) {}
13 };
14 CONCEPT_GRAPH(tree, tree);
15
16 } // namespace tifa_libs
17