diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TypePrinter.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 1d881f8c06..d31c16c32b 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -769,6 +769,24 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BorderSize &border) return os; } +/** Formatted output of the PaddingList type. + * + * @param[out] os Output stream. + * @param[in] padding Type to output. + * + * @return Modified output stream. + */ +inline ::std::ostream &operator<<(::std::ostream &os, const PaddingList &padding) +{ + os << "{"; + for(auto const &p : padding) + { + os << "{" << p.first << "," << p.second << "}"; + } + os << "}"; + return os; +} + /** Formatted output of the InterpolationPolicy type. * * @param[out] os Output stream. @@ -1108,6 +1126,19 @@ inline std::string to_string(const BorderSize &border) return str.str(); } +/** Formatted output of the PaddingList type. + * + * @param[in] padding Type to output. + * + * @return Formatted string. + */ +inline std::string to_string(const PaddingList &padding) +{ + std::stringstream str; + str << padding; + return str.str(); +} + /** Formatted output of the InterpolationPolicy type. * * @param[in] policy Type to output. |