Implementation of the helpers associated with the FunctionConcept concept.
- Author
- Thomas Helfer
- Date
- 14/05/2025
- Copyright
- (C) Copyright Thomas Helfer 2018. Use, modification and distribution are subject to one of the following licences:
- GNU Lesser General Public License (LGPL), Version 3.0. (See accompanying file LGPL-3.0.txt)
- CECILL-C, Version 1.0 (See accompanying files CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt).
template<EvaluatorConcept EvaluatorType, ViewableFunctionArgumentConcept FunctionType>
requires ( std::same_as<evaluator_space<EvaluatorType>, function_space<std::decay_t<FunctionType>>>)
| bool mgis::function::operator| |
( |
EvaluatorType | e, |
|
|
FunctionType && | f ) |
|
nodiscard |
assign an evaluator to a mutable function
implementation of the operator| which assigns the values computed by an evaluator to the values of a function
- Template Parameters
-
| EvaluatorType | evaluator type |
| FunctionType | type of the function, which may be a qualified type (reference, const, etc...) |
- Parameters
-
| [in] | e | evaluator |
| [in,out] | f | function |
- Returns
- true if the assignment succeeded
- Note
- the errors detected during the assignment are reported by a default constructed Context object, which is not returned to the caller.