Geant4-11
Functions
G4DataVector.cc File Reference
#include "G4DataVector.hh"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const G4DataVector &pv)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
const G4DataVector pv 
)

Definition at line 137 of file G4DataVector.cc.

138{
139 out << pv.size() << std::setprecision(12) << G4endl;
140 for(std::size_t i = 0; i < pv.size(); ++i)
141 {
142 out << pv[i] << G4endl;
143 }
144 out << std::setprecision(6);
145
146 return out;
147}
#define G4endl
Definition: G4ios.hh:57