|
MGIS 3.1.0
|
partial application of a binary operation to the evaluator of its second argument, without storing the operation More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/BinaryOperation.hxx>
Public Types | |
| using | Tag = ::mgis::function::EvaluatorModifierTag |
| this alias allows to match the Evaluator Modifier concept | |
Public Member Functions | |
| MGIS_HOST_DEVICE constexpr | BinaryOperatorCurrying2 (const SecondEvaluatorType &) |
| constructor | |
| template<typename FirstEvaluatorType> requires ( (EvaluatorConcept<std::decay_t<FirstEvaluatorType>>)&& // (std::invocable<CallableType, evaluator_result<std::decay_t<FirstEvaluatorType>>, evaluator_result<SecondEvaluatorType>>)) | |
| MGIS_HOST_DEVICE constexpr auto | operator() (FirstEvaluatorType &&) const |
| apply the partially applied binary operation to the evaluator of its first argument | |
partial application of a binary operation to the evaluator of its second argument, without storing the operation
This helper behaves as BinaryOperatorCurrying except that the callable object is not stored in the object: it must be trivially default constructible. Only the evaluator of the second argument is stored, which allows the predefined modifiers of this file to be defined as constexpr global variables.
| CallableType | type of the binary operation, which must be trivially default constructible |
| SecondEvaluatorType | type of the evaluator used to compute the second argument of the operation |
|
constexpr |
constructor
stores a copy of the evaluator of the second argument
| [in] | e | evaluator of the second argument of the operation, a copy of which is stored in the object |
|
constexpr |
apply the partially applied binary operation to the evaluator of its first argument
builds a BinaryOperationModifier2 from the given evaluator
| FirstEvaluatorType | type of the evaluator, which may be a qualified type |
| [in] | e1 | evaluator used to compute the first argument of the operation |