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

Method column

include/tabulate/table_internal.hpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 const Row &operator[](size_t index) const { return *(rows_[index]); }
74
75 Column column(size_t index) {
76 Column column(shared_from_this());
77 for (size_t i = 0; i < rows_.size(); ++i) {
78 auto row = rows_[i];
79 auto &cell = row->cell(index);
80 column.add_cell(cell);
81 }
82 return column;
83 }
84
85 size_t size() const { return rows_.size(); }
86

Callers 1

Calls 2

sizeMethod · 0.45
add_cellMethod · 0.45

Tested by

no test coverage detected