Belle II Software development
_nt_compare< T1, T_rest > Struct Template Reference

Static Public Member Functions

template<typename VECA_T , typename VECB_T >
static auto __isLessthen (const VECA_T &vecA, const VECB_T &vecB)
 
template<typename VECA_T , typename VECB_T >
static auto __isEequal (const VECA_T &vecA, const VECB_T &vecB)
 

Detailed Description

template<typename T1, typename... T_rest>
struct nt::comparators::_nt_compare< T1, T_rest >

Definition at line 210 of file ntuples_full.h.

Member Function Documentation

◆ __isEequal()

static auto __isEequal ( const VECA_T &  vecA,
const VECB_T &  vecB 
)
inlinestatic

Definition at line 228 of file ntuples_full.h.

229 {
230 if constexpr(sizeof...(T_rest) > 0) {
231 if (nt::_Remove_cvref_t<T1>::get(vecA) != nt::_Remove_cvref_t<T1>::get(vecB)) {
232 return false;
233 }
234 return _nt_compare<T_rest...>::template __isEequal(vecA, vecB);
235 } else {
236 return nt::_Remove_cvref_t<T1>::get(vecA) == nt::_Remove_cvref_t<T1>::get(vecB);
237 }
238 }

◆ __isLessthen()

static auto __isLessthen ( const VECA_T &  vecA,
const VECB_T &  vecB 
)
inlinestatic

Definition at line 213 of file ntuples_full.h.

214 {
215 if constexpr(sizeof...(T_rest) > 0) {
216 if (T1::get(vecA) < T1::get(vecB)) {
217 return true;
218 } else if (T1::get(vecA) > T1::get(vecB)) {
219 return false;
220 }
221 return _nt_compare<T_rest...>::template __isLessthen(vecA, vecB);
222 } else {
223 return T1::get(vecA) < T1::get(vecB);
224 }
225 }

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