44 for (
auto &h :
cols) {
49 int headerLength = std::accumulate(
cols.begin(),
cols.end(), 0, [
this](
int count,
const Column &col) {
50 return count + col.width + sepChar.size() + 2;
52 std::string sepLine(headerLength,
'-');
53 out << sepLine <<
'\n';