MCPcopy Create free account
hub / github.com/p-ranav/tabulate / main

Function main

samples/nested_table_colors.cpp:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using Row_t = Table::Row_t;
4
5int main() {
6 Table inner;
7 inner.add_row(Row_t{"A"});
8 inner[0][0].format().font_color(Color::green);
9
10 Table outer;
11 outer.add_row(Row_t{inner});
12
13 std::cout << "on its own:\n" << inner << "\n\n";
14 std::cout << "nested in another table:\n" << outer << std::endl;
15}

Callers

nothing calls this directly

Calls 2

add_rowMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected