8 #ifndef OPENFPM_DATA_SRC_UTIL_COPY_COMPARE_AGGREGATES_HPP_
9 #define OPENFPM_DATA_SRC_UTIL_COPY_COMPARE_AGGREGATES_HPP_
11 #include <boost/type_traits.hpp>
39 typedef typename boost::fusion::result_of::at_c<typename S::type,T::value>::type copy_type;
42 typedef typename boost::remove_reference<copy_type>::type copy_rtype;
67 :eq(true),src(src),dst(dst){};
74 typedef typename boost::fusion::result_of::at_c<typename S::type,T::value>::type compare_type;
77 typedef typename boost::remove_reference<compare_type>::type compare_rtype;
copy_aggregate(const S &src, S &dst)
copy_aggregate
void operator()(T &t) const
It call the copy function for each member.
Structure to copy aggregates.
Structure to compare aggregates.
bool result()
Returh the result of the comparison.
void operator()(T &t)
It call the copy function for each member.
compare_aggregate(const S &src, const S &dst)
copy_aggregate
const S & dst
Destination grid.