ADTF
Loading...
Searching...
No Matches
cResult::sErrorEval< ErrorType, ErrorTypes >

Used as entry point for comparison on the error codes used in IsEqual() More...

Static Public Member Functions

static constexpr bool dispatch (tErrorCode i_oErrorCode, const ErrorType &i_oErrorVal, const ErrorTypes &... i_oErrorVals) noexcept
 Compile time dispatching of error codes.
 

Detailed Description

template<typename ErrorType, typename... ErrorTypes>
struct A_UTILS_NS::cResult::sErrorEval< ErrorType, ErrorTypes >

Used as entry point for comparison on the error codes used in IsEqual()

Template Parameters
ErrorTypeThe current error type to compare
ErrorTypesRemaining ErrorTypes to check

Definition at line 559 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/result.h.

Member Function Documentation

◆ dispatch()

template<typename ErrorType, typename... ErrorTypes>
static constexpr bool dispatch ( tErrorCode i_oErrorCode,
const ErrorType & i_oErrorVal,
const ErrorTypes &... i_oErrorVals )
inlinestaticconstexprnoexcept

Compile time dispatching of error codes.

Parameters
[in]i_oErrorCodeLeft hand sind error object for comparison
[in]i_oErrorValRight hand side error object for comparison
[in]i_oErrorValsRemaining error codes to dispatch if the error codes did not match
Returns
tTrue if i_oErrorCode and i_oErrorVal contain the same error code value

Definition at line 569 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/result.h.

References dispatch().

Referenced by dispatch(), and cResult::IsEqual().