Changeset 181148 in git for factory/templates/ftmpl_list.h


Ignore:
Timestamp:
May 15, 2006, 11:03:07 AM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
f0daaa2ae00a1c211020bcbe4eca9c6fe7947a71
Parents:
1dc6163f5dbd22ee9839decb93a02494ac071aca
Message:
*hannes: ISTREAM, OSTREAM, CERR


git-svn-id: file:///usr/local/Singular/svn/trunk@9135 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/templates/ftmpl_list.h

    r1dc616 r181148  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: ftmpl_list.h,v 1.9 2006-05-15 08:17:56 Singular Exp $ */
     2/* $Id: ftmpl_list.h,v 1.10 2006-05-15 09:03:07 Singular Exp $ */
    33
    44#ifndef INCL_LIST_H
     
    1010#ifdef HAVE_IOSTREAM
    1111#include <iostream>
     12#define OSTREAM std::ostream
    1213#elif defined(HAVE_IOSTREAM_H)
    1314#include <iostream.h>
     15#define OSTREAM ostream
    1416#endif
    1517#endif /* NOSTREAMIO */
     
    2325#ifndef NOSTREAMIO
    2426template <class T>
    25 std::ostream& operator<< ( std::ostream &, const List<T> &);
     27OSTREAM& operator<< ( OSTREAM &, const List<T> &);
    2628#endif
    2729
     
    4345    T& getItem();
    4446#ifndef NOSTREAMIO
    45     void print ( ostream& );
     47    void print ( OSTREAM& );
    4648#endif /* NOSTREAMIO */
    4749    friend class ListIterator<T>;
     
    7476    void sort ( int (*) ( const T&, const T& ) );
    7577#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 );
    7880#endif /* NOSTREAMIO */
    7981    friend class ListIterator<T>;
     
    8284#ifndef NOSTREAMIO
    8385template <class T>
    84 ostream& operator<< ( ostream & os, const List<T> & l );
     86OSTREAM& operator<< ( OSTREAM & os, const List<T> & l );
    8587#endif /* NOSTREAMIO */
    8688
Note: See TracChangeset for help on using the changeset viewer.