1 #ifndef fhiclcpp_types_detail_ostream_helpers_h 2 #define fhiclcpp_types_detail_ostream_helpers_h 4 #include "cetlib_except/demangle.h" 11 namespace yes_defaults {
31 operator<<(std::ostream& os, maybe_quotes<bool>&& mq)
33 return os << std::boolalpha << mq.value;
38 operator<<(std::ostream& os, maybe_quotes<T>&& mq)
40 return os << mq.value;
45 operator<<(std::ostream& os, maybe_quotes<T>&& mq)
47 return os << std::showpoint << mq.value;
59 namespace no_defaults {
66 return std::string(
"<") + tnToPad + std::string(
">");
79 std::string
const strippedTypename =
100 operator<<(std::ostream& os, expected_types<T>&& et)
102 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)
std::string value(boost::any const &)
maybe_quotes(std::string const &t)