DATRW++ library: seismic data I/O with multiple formats

◆ swap() [1/2]

template<class T >
T datrw::util::swap ( const T &  value)

How to swap any generic type.

end of group_bytesex

Definition at line 118 of file bytesex.h.

References datrw::util::IOUnion< T >::value.

Referenced by file_magic_test(), and datrw::binary::ibinstream::read().

119  {
120  IOUnion<T> in, out;
121  in.value=value;
122  out=swap(in);
123  return(out.value);
124  }
IOUnion< T > swap(const IOUnion< T > &value)
Specialization in case we use use an IOUnion. i.e. overloading the function.
Definition: bytesex.h:130
Here is the caller graph for this function: