source: Sophya/trunk/Poubelle/DPC:FitsIOServer/SysTools/complexios.h@ 658

Last change on this file since 658 was 658, checked in by ansari, 26 years ago

no message

File size: 498 bytes
Line 
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)
13template<class T>
14inline 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.