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

◆ swap() [2/2]

template<class T >
IOUnion<T> tfxx::ioswap::swap ( const IOUnion< T > &  value)

Specialization in case we use use an IOUnion. i.e. overloading the function.

,

Definition at line 153 of file bytesex.h.

References tfxx::ioswap::IOUnion< T >::bytes.

154 {
155  IOUnion<T> result;
156  for (unsigned int i=0; i<sizeof(T); i++)
157  { result.bytes[i]=value.bytes[sizeof(T)-i-1]; }
158  return(result);
159 }