diff options
Diffstat (limited to '')
-rw-r--r-- | src/list.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |