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

◆ put()

template<typename T >
void tfxx::fortranio::FortranBinOutput::put ( const T &  value)

put a value to the output

Definition at line 253 of file fortranio.h.

References tfxx::ioswap::IOUnion< T >::bytes, put_chars(), and tfxx::ioswap::IOUnion< T >::value.

Referenced by tfxx::fortranio::operator<<(), and write_magic().

254 {
256  buf.value=value;
257  put_chars(buf.bytes, sizeof(T));
258 }
void put_chars(const char *buf, const int &n)
put some chars to the output
Definition: fortranio.cc:172
char bytes[sizeof(T)]
Definition: bytesex.h:100
Here is the call graph for this function:
Here is the caller graph for this function: