PandaRoot
PndFTSArrayIO.h File Reference
#include <iostream>
#include "PndFTSArray.h"

Go to the source code of this file.

Namespaces

 AnsiColor
 

Functions

template<typename T >
std::ostream & operator<< (std::ostream &out, const PndFTSArray< T > &a)
 

Function Documentation

◆ operator<<()

template<typename T >
std::ostream& operator<< ( std::ostream &  out,
const PndFTSArray< T > &  a 
)
inline

Definition at line 33 of file PndFTSArrayIO.h.

References i.

34 {
35  out << AnsiColor::blue << "{" << AnsiColor::normal;
36  for (int i = 0; i < a.Size(); ++i) {
37  if (i > 0) {
38  out << AnsiColor::blue << ", " << AnsiColor::normal;
39  }
40  out << a[i];
41  }
42  out << AnsiColor::blue << "}" << AnsiColor::normal;
43  return out;
44 }
unsigned int i
Definition: P4_F32vec4.h:21
int Size() const
Definition: PndFTSArray.h:486