| Rev | Line |   | 
|---|
| [658] | 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
 | 2 | // Gestion d impression des complex sur les streams
 | 
|---|
 | 3 | //                         C.Magneville          04/99
 | 
|---|
 | 4 | // LAL (Orsay) / IN2P3-CNRS  DAPNIA/SPP (Saclay) / CEA
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | #ifndef COMPLEXIOS_H
 | 
|---|
 | 7 | #define COMPLEXIOS_H
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | #include "machdefs.h"
 | 
|---|
 | 10 | #include <iostream.h>
 | 
|---|
 | 11 | 
 | 
|---|
 | 12 | #if defined(NO_IOS_COMPLEX)
 | 
|---|
 | 13 | template<class T> 
 | 
|---|
 | 14 | inline ostream& operator << (ostream& os, const complex<T>& c)
 | 
|---|
 | 15 |            {os<<"("<<c.real()<<","<<c.imag()<<")"; return os;}
 | 
|---|
 | 16 | #endif
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.