TF++, Miscellaneous classes and modules in C++:

◆ operator<<() [1/3]

template<typename T >
tfxx::fortranio::FortranBinOutput& tfxx::fortranio::operator<< ( tfxx::fortranio::FortranBinOutput fo,
const std::complex< T > &  value 
)

Output operator template for class FortranBinOutput.

,

It is quite save to present this operator in the global namespace. This is just function overloading. The compiler will decide which operator we need be the FortranBinOutput object involved. An this way using the operator function is most convenient.

Definition at line 72 of file complexio.h.

References tfxx::fortranio::FortranBinOutput::put().

74  {
75  fo.put(value.real());
76  fo.put(value.imag());
77  return(fo);
78  }
void put(const T &value)
put a value to the output
Definition: fortranio.h:253
Here is the call graph for this function: