14 #ifndef INCLUDED_utility_stream_util_hh
15 #define INCLUDED_utility_stream_util_hh
33 template <
typename T1,
typename T2>
34 std::ostream & operator <<(std::ostream & os, std::pair<T1, T2>
const &
v);
37 template <
typename T1,
typename T2>
38 std::ostream & operator <<(std::ostream & os, std::pair<T1, T2>
const &
v) {
49 template <
typename T1,
typename T2>
50 std::ostream & operator <<(std::ostream & os, std::map<T1, T2>
const & m) {
56 for ( p=m.begin(); p!=m.end(); p++ ) {
57 os << p->first <<
":" << p->second <<
", ";
67 std::ostream & operator <<(std::ostream & os, std::list<T>
const & l) {
73 for ( p=l.begin(); p!=l.end(); p++ ) {
82 template <platform::SSize L,
class T>
83 std::ostream & operator <<(std::ostream & os, utility::vectorL<L, T>
const &
v) {
86 for (
size_t i=
v.l(); i<=
v.u(); ++i ) {
88 if ( i < v.u() ) os <<
", ";
102 std::ostream & operator <<( std::ostream & os, std::vector<T>
const &
v)
105 for (
size_t i = 0; i <
v.size(); i++ ) {
107 if ( i < v.size()-1 ) os <<
", ";
115 #endif // INCLUDED_utility_stream_util_hh
utility::vectorL forward declarations
utility::keys::KeyLookup< KeyType >::const_iterator const_iterator
Key collection iterators.
utility::keys::KeyLookup< KeyType >::const_iterator ConstIterator
utility::vector1 forward declarations