File indexing completed on 2023-03-17 11:03:54
0001 #include "FWCore/Utilities/interface/OStreamColumn.h"
0002
0003 #include <algorithm>
0004
0005 namespace edm {
0006
0007 OStreamColumn::OStreamColumn(std::string const& t) : OStreamColumn{t, 0} {}
0008
0009 OStreamColumn::OStreamColumn(std::string const& t, std::size_t const w)
0010 : title_{t}, width_{std::max(w, title_.size())} {}
0011
0012 std::ostream& operator<<(std::ostream& t, OStreamColumn const& c) {
0013 t << std::setw(c.width_) << c.title_;
0014 return t;
0015 }
0016
0017 }