/************************************************************************* * * * (C) Copyright 2004. Media Research Centre at the * * Sociology and Communications Department of the * * Budapest University of Technology and Economics. * * * * Developed by Daniel Varga. * * * *************************************************************************/ #ifndef __HUNGLISH_INCLUDE_SERIALIZEIMPL_H #define __HUNGLISH_INCLUDE_SERIALIZEIMPL_H #include #include #include template std::ostream& operator<<( std::ostream& os, const std::vector& v ) { for ( typename std::vector::const_iterator it=v.begin(); it!=v.end(); ++it ) { os << *it ; if (it+1!=v.end()) os << " "; } return os; } template std::ostream& operator<<( std::ostream& os, const std::set& v ) { typename std::set::const_iterator it=v.begin(); while (true) { os << *it ; typename std::set::const_iterator itplus = it; ++itplus; if (itplus == v.end()) break; else os << " "; it = itplus; } return os; } #endif // #define __HUNGLISH_INCLUDE_SERIALIZEIMPL_H