From 2a8146c43ffe511c6cfe077ef19140e98b7b773a Mon Sep 17 00:00:00 2001 From: HRN Date: Sat, 15 Feb 2025 22:03:41 +0330 Subject: [PATCH] add operator << for Set --- src/phasicFlow/containers/Set/Set.hpp | 15 +++++++++++++++ .../repository/systemControl/systemControl.cpp | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/src/phasicFlow/containers/Set/Set.hpp b/src/phasicFlow/containers/Set/Set.hpp index 3c619f0b..7ed856a3 100644 --- a/src/phasicFlow/containers/Set/Set.hpp +++ b/src/phasicFlow/containers/Set/Set.hpp @@ -24,6 +24,7 @@ Licence: #include #include "types.hpp" +#include "iOstream.hpp" namespace pFlow { @@ -34,6 +35,20 @@ using Set = std::set,std::allocator>; using wordSet = Set; +template +iOstream& operator<<(iOstream& os, const Set& s) +{ + os << beginListToken(); + for(auto elm = s.begin(); elm!=s.end(); ) + { + os<< *elm++; + if( elm!=s.end() ) + os<