aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index f11336e..b52f9fc 100644
--- a/src/list.h
+++ b/src/list.h
@@ -669,6 +669,24 @@ namespace Bu
669 long nSize; 669 long nSize;
670 cmpfunc cmp; 670 cmpfunc cmp;
671 }; 671 };
672
673 class Formatter;
674 Formatter &operator<<( Formatter &rOut, char *sStr );
675 Formatter &operator<<( Formatter &rOut, signed char c );
676 template<typename value>
677 Formatter &operator<<( Formatter &f, const Bu::List<value> &l )
678 {
679 f << '[';
680 for( typename Bu::List<value>::const_iterator i = l.begin(); i; i++ )
681 {
682 if( i != l.begin() )
683 f << ", ";
684 f << *i;
685 }
686 f << ']';
687
688 return f;
689 }
672} 690}
673 691
674#endif 692#endif