8#ifndef OPENFPM_DATA_SRC_UTIL_META_COMPARE_HPP_
9#define OPENFPM_DATA_SRC_UTIL_META_COMPARE_HPP_
11#include "compare_general.hpp"
39 static inline bool meta_compare_f(
const T & src,
const T & dst)
46template<
typename T,
size_t N1>
49 static inline bool meta_compare_f(
const T (& src)[N1],
const T (& dst)[N1])
51 for (
size_t i1 = 0 ; i1 < N1 ; i1++)
62template<
typename T,
size_t N1,
size_t N2>
65 static inline bool meta_compare_f(
const T (& src)[N1][N2],
const T (& dst)[N1][N2])
67 for (
size_t i1 = 0 ; i1 < N1 ; i1++)
69 for (
size_t i2 = 0 ; i2 < N2 ; i2++)
81template<
typename T,
size_t N1,
size_t N2,
size_t N3>
84 static inline bool meta_compare_f(
const T (& src)[N1][N2][N3],
const T (& dst)[N1][N2][N3])
86 for (
size_t i1 = 0 ; i1 < N1 ; i1++)
88 for (
size_t i2 = 0 ; i2 < N2 ; i2++)
90 for (
size_t i3 = 0 ; i3 < N3 ; i3++)
structure to copy aggregates
static bool compare_general_f(const T &src, const T &dst)
Spacialization when there is unknown compare method.