Changeset 181148 in git for factory/templates/ftmpl_list.h
- Timestamp:
- May 15, 2006, 11:03:07 AM (17 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- f0daaa2ae00a1c211020bcbe4eca9c6fe7947a71
- Parents:
- 1dc6163f5dbd22ee9839decb93a02494ac071aca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/templates/ftmpl_list.h
r1dc616 r181148 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_list.h,v 1. 9 2006-05-15 08:17:56Singular Exp $ */2 /* $Id: ftmpl_list.h,v 1.10 2006-05-15 09:03:07 Singular Exp $ */ 3 3 4 4 #ifndef INCL_LIST_H … … 10 10 #ifdef HAVE_IOSTREAM 11 11 #include <iostream> 12 #define OSTREAM std::ostream 12 13 #elif defined(HAVE_IOSTREAM_H) 13 14 #include <iostream.h> 15 #define OSTREAM ostream 14 16 #endif 15 17 #endif /* NOSTREAMIO */ … … 23 25 #ifndef NOSTREAMIO 24 26 template <class T> 25 std::ostream& operator<< ( std::ostream&, const List<T> &);27 OSTREAM& operator<< ( OSTREAM &, const List<T> &); 26 28 #endif 27 29 … … 43 45 T& getItem(); 44 46 #ifndef NOSTREAMIO 45 void print ( ostream& );47 void print ( OSTREAM& ); 46 48 #endif /* NOSTREAMIO */ 47 49 friend class ListIterator<T>; … … 74 76 void sort ( int (*) ( const T&, const T& ) ); 75 77 #ifndef NOSTREAMIO 76 void print ( ostream& ) const;77 friend ostream& operator<< <T>( ostream& os, const List<T> & l );78 void print ( OSTREAM & ) const; 79 friend OSTREAM& operator<< <T>( OSTREAM & os, const List<T> & l ); 78 80 #endif /* NOSTREAMIO */ 79 81 friend class ListIterator<T>; … … 82 84 #ifndef NOSTREAMIO 83 85 template <class T> 84 ostream& operator<< ( ostream& os, const List<T> & l );86 OSTREAM& operator<< ( OSTREAM & os, const List<T> & l ); 85 87 #endif /* NOSTREAMIO */ 86 88
Note: See TracChangeset
for help on using the changeset viewer.