1 #ifndef art_Framework_Art_detail_PrintFormatting_h 2 #define art_Framework_Art_detail_PrintFormatting_h 5 #include "cetlib/container_algorithms.h" 19 return std::string(i,
' ');
39 template <
typename T,
typename Elem>
42 std::string
const Elem::*cp,
43 std::string
const& header)
45 std::size_t s{header.size()};
47 coll, [&s, cp](
auto const& elem) { s = std::max(s, (elem.*cp).size()); });
54 std::string
const& header)
56 std::size_t s{header.size()};
58 coll, [&s, fp](
auto const& li) { s = std::max(s, (li.*fp)().size()); });
65 using Widths = std::vector<std::size_t>;
70 std::size_t result{
indent0().size()};
71 for (std::size_t
const w : widths)
74 (widths.size() - 1) * 4u;
std::vector< std::size_t > Widths
std::size_t columnWidth(T const &coll, std::string const Elem::*cp, std::string const &header)
std::size_t rule_size(Widths const &widths)
std::string indent(std::size_t const i)
std::multiset< LibraryInfo > LibraryInfoCollection