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

◆ operator>>() [3/5]

template<typename T >
tfxx::fortranio::FortranBinInput& tfxx::fortranio::operator>> ( tfxx::fortranio::FortranBinInput fi,
std::complex< T > &  value 
)

Input operator template for class FortranBinInput.

,

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 FortranBinInput object involved. An this way using the operator function is most convenient.

Definition at line 93 of file complexio.h.

References tfxx::fortranio::FortranBinInput::get().

95  {
96  T rvalue,ivalue;
97  fi.get(rvalue);
98  fi.get(ivalue);
99  value=std::complex<T>(rvalue, ivalue);
100  return(fi);
101  }
Here is the call graph for this function: