From 21dca6849a23008e0dd6a8c582e3089903e8a011 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 18 Dec 2022 13:36:14 +0000 Subject: Pair support for streams --- lib/stream_support.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 + std::ostream & + operator<<(std::ostream & s, const std::pair & v) + { + return (s << '(' << v.first << ", " << v.second << ')'); + } + inline std::ostream & operator<<(std::ostream & s, const Arc & arc) { -- cgit v1.2.3