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

◆ types_are_equal()

template<typename t1 , typename t2 >
bool datrw::types_are_equal ( )
inline

call this function to check whether two types equal

Parameters
t1first type
t2second type
Returns
true if t1 equals t2

Definition at line 119 of file datatypes.h.

120  {
121  bool retval;
122  std::string typeid1=::datrw::datatypes::type_id<t1>();
123  std::string typeid2=::datrw::datatypes::type_id<t2>();
124  retval=(typeid1==typeid2);
125  return(retval);
126  } // bool types_are_equal()