1 #ifndef fhiclcpp_types_detail_ostream_helpers_h 2 #define fhiclcpp_types_detail_ostream_helpers_h 4 #include "cetlib_except/demangle.h" 30 operator<<(std::ostream& os, maybe_quotes<bool>&& mq)
32 return os << std::boolalpha << mq.value;
37 operator<<(std::ostream& os, maybe_quotes<T>&& mq)
39 if constexpr (std::is_floating_point_v<T>) {
40 return os << std::showpoint << mq.value;
42 return os << mq.value;
58 return std::string(
"<") + tnToPad + std::string(
">");
71 std::string
const strippedTypename =
92 operator<<(std::ostream& os, expected_types<T>&& et)
94 return os << et.value;
std::string stripped_typename(std::string const &fullName)
std::string presented_string(std::string const &fullName)
std::string padded_string(std::string const &tnToPad)
maybe_quotes(std::string const &t)