#include #include #include using namespace std; template void Print(ostream& out, const type& kunteynir){ bool first_ap = true; for(const auto& kun: kunteynir){ if(!first_ap){ out << ", "; } first_ap = false; out << kun; } } template ostream& operator<< (ostream& out, const setkunteynir){ Print(out, kunteynir); return out; } template ostream& operator<< (ostream& out, const vectorkunteynir){ Print(out, kunteynir); return out; } int main() { const vector ages = {10, 5, 2, 12}; const set set_ages = {20, 15, 3 , 1}; cout << ages << endl; cout << set_ages << endl; return 0; }