We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8519e8 commit 9cba97fCopy full SHA for 9cba97f
lib/coek/coek/compact/parameter_map.hpp
@@ -129,6 +129,14 @@ class ParameterMap : public ParameterAssocArray {
129
ParameterMap& value(double value);
130
/** Set the initial parameter value. \returns the parameter object. */
131
ParameterMap& value(const Expression& value);
132
+ template <typename KeyType, typename ValueType>
133
+ ParameterMap& value(const std::map<KeyType,ValueType>& values)
134
+ {
135
+ for (auto& [key,value]: values) {
136
+ this->operator()(key).value(value);
137
+ }
138
+ return *this;
139
140
141
/** Set the name of the parameter. \returns the parameter object */
142
ParameterMap& name(const std::string& name);
0 commit comments