source: XMLIO_V2/external/include/blitz/vecpickio.cc @ 80

Last change on this file since 80 was 80, checked in by ymipsl, 14 years ago

ajout lib externe

File size: 629 bytes
Line 
1/*
2 * $Id: vecpickio.cc,v 1.3 2003/12/11 03:44:22 julianc Exp $
3 *
4 * Copyright (C) 1997 Todd Veldhuizen <tveldhui@oonumerics.org>
5 * All rights reserved.  Please see <blitz/blitz.h> for terms and
6 * conditions of use.
7 *
8 */
9
10#ifndef BZ_VECPICKIO_CC
11#define BZ_VECPICKIO_CC
12
13#ifndef BZ_VECPICK_H
14 #error <blitz/vecpickio.cc> must be included via <blitz/vecpick.h>
15#endif // BZ_VECPICK_H
16
17BZ_NAMESPACE(blitz)
18
19template<typename P_numtype>
20ostream& operator<<(ostream& os, const VectorPick<P_numtype>& x)
21{
22    Vector<P_numtype> y(x.length());
23    y = x;
24    os << y;
25    return os;
26}
27
28BZ_NAMESPACE_END
29
30#endif // BZ_VECPICKIO_CC
Note: See TracBrowser for help on using the repository browser.