Mjolnir Core
Core functionality of the Mjolnir API

◆ compare_selected_true()

auto compare_selected_true ( T_RegisterType  lhs,
T_RegisterType  rhs,
T_CompFunc  comp_func 
) -> bool
inlinenoexcept

Return true only if the comparisons of all selected register elements yields true.

Template Parameters
t_cmpA parameter pack of boolean values with the size of the number of register elements. If a value is true, the corresponding element is compared. Otherwise, it is ignored
T_RegisterTypeThe register type
T_CompFuncThe Type of a callable object that performs the register element comparison.
Parameters
[in]lhsThe register left of the operator
[in]rhsThe register right of the operator
[in]comp_funcA comparison function or functor that provides the comparison of the register elements. Functors should be preferred to assure inlining. See https://stackoverflow.com/a/12718449/6700329
Returns
true or false