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

Function main

samples/string_view_in_row.cpp:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#endif
12
13int main() {
14 Table table;
15
16 string_view c0 = "string_view";
17 const char *c1 = "const char *";
18 std::string c2 = "std::string";
19
20 Table c3;
21 c3.add_row({"Table", "", ""});
22 c3.add_row({c0, c1, c2});
23 c3[0].format().border("").corner("");
24
25 table.add_row({c0, c1, c2, c3});
26
27 std::cout << table << std::endl;
28}

Callers

nothing calls this directly

Calls 2

add_rowMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected