35template <
typename Signature,
typename Function>
47template <
typename Value,
typename Variable,
typename Function>
65 : function_(
std::move(function)) {}
73 value_ = function_(variable);
99template <
typename Signature,
typename Function>
103 std::forward<Function>(function));
auto value() const -> const value_type &
Get function value.
std::decay_t< Variable > variable_type
Type of variables.
std::decay_t< Value > value_type
Type of function values.
std::decay_t< Function > function_type
Type of the function.
function_object_wrapper(function_type function)
Constructor.
void evaluate_on(const variable_type &variable)
Evaluate function value on a variable.
function_type function_
Function.
Wrapper class of a function object to use as an objective function.
Namespace of optimization algorithms.
auto make_function_object_wrapper(Function &&function) -> function_object_wrapper< Signature, Function >
Create function_object_wrapper object.