diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-18 13:36:14 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-18 13:36:14 +0000 |
commit | 21dca6849a23008e0dd6a8c582e3089903e8a011 (patch) | |
tree | 7fad9400fca247920adcba584bf7282195626245 | |
parent | Helper to sort glm::vecs by a specific axis (diff) | |
download | ilt-21dca6849a23008e0dd6a8c582e3089903e8a011.tar.bz2 ilt-21dca6849a23008e0dd6a8c582e3089903e8a011.tar.xz ilt-21dca6849a23008e0dd6a8c582e3089903e8a011.zip |
Pair support for streams
-rw-r--r-- | lib/stream_support.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/stream_support.hpp b/lib/stream_support.hpp index 2ab2f9d..5f45cbf 100644 --- a/lib/stream_support.hpp +++ b/lib/stream_support.hpp @@ -47,6 +47,13 @@ namespace std { return (s << std::span {v}); } + template<typename First, typename Second> + std::ostream & + operator<<(std::ostream & s, const std::pair<First, Second> & v) + { + return (s << '(' << v.first << ", " << v.second << ')'); + } + inline std::ostream & operator<<(std::ostream & s, const Arc & arc) { |