column_width.cc
Go to the documentation of this file.
1 #include "cetlib/column_width.h"
2 
3 #include <algorithm>
4 
5 std::string::size_type
6 cet::column_width(std::vector<std::string> const& v)
7 {
8  if (v.empty())
9  return 0ull;
10 
11  auto max_elem =
12  std::max_element(v.begin(), v.end(), [](auto const& a, auto const& b) {
13  return a.size() < b.size();
14  });
15  return max_elem->size();
16 }
std::string::size_type column_width(std::vector< std::string > const &)
Definition: column_width.cc:6
const double a
static bool * b
Definition: config.cpp:1043