1 #ifndef art_Framework_Art_detail_PrintFormatting_h 2 #define art_Framework_Art_detail_PrintFormatting_h 5 #include "cetlib/container_algorithms.h" 20 return std::string(i,
' ');
40 template <
typename T,
typename Elem>
43 std::string
const Elem::*cp,
44 std::string
const& header)
46 std::size_t
s{header.size()};
47 cet::for_all(coll, [&
s, cp](
auto const& elem) {
56 std::string
const& header)
58 std::size_t
s{header.size()};
60 coll, [&
s, fp](
auto const& li) {
s =
std::max(
s, (li.*fp)().size()); });
67 using Widths = std::vector<std::size_t>;
72 std::size_t result{
indent0().size()};
73 for (std::size_t
const w : widths)
76 (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