Belle II Software development
on_common_args_t Struct Reference

Public Member Functions

template<typename T1 , typename T2 >
constexpr bool operator() (T1 &&t1, T2 &&t2) const
 

Static Public Member Functions

template<typename T1 , typename T2 >
static constexpr bool __comp__ (T1 &&t1, T2 &&t2)
 

Detailed Description

Definition at line 486 of file ntuples_full.h.

Member Function Documentation

◆ __comp__()

static constexpr bool __comp__ ( T1 &&  t1,
T2 &&  t2 
)
inlinestaticconstexpr

Definition at line 489 of file ntuples_full.h.

490 {
491 bool ret = true;
492 constexpr_for<0, _Remove_cvref_t<T1>::__size__, 1>(
493 [&](const auto i) {
494 using N_th_T = _Remove_cvref_t<decltype(nt::get_nth<i>(t1))>;
495 if constexpr(contains_type_v<N_th_T, _Remove_cvref_t<T2>>) {
496 ret &= (N_th_T::get(t1) == N_th_T::get(t2));
497 }
498 });
499 return ret;
500 }

◆ operator()()

constexpr bool operator() ( T1 &&  t1,
T2 &&  t2 
) const
inlineconstexpr

Definition at line 503 of file ntuples_full.h.

504 {
505 return __comp__(std::forward<T1>(t1), std::forward<T2>(t2));
506 }

The documentation for this struct was generated from the following file: