23std::unique_ptr<const NonStreamableSolverInitArguments> CloneIfNotNull(
25 return non_streamable !=
nullptr ? non_streamable->Clone() :
nullptr;
32 : non_streamable_(non_streamable.Clone()) {}
36 : non_streamable_(CloneIfNotNull(other.non_streamable_.
get())) {}
46 non_streamable_ = CloneIfNotNull(other.non_streamable_.get());
NonStreamableSolverInitArgumentsValue & operator=(const NonStreamableSolverInitArgumentsValue &other)
Clones other.get() if not nullptr.
NonStreamableSolverInitArgumentsValue()=default
Initializes with no value.
const NonStreamableSolverInitArguments * get() const
Return a pointer on the value; nullptr if unset (default value).
An object oriented wrapper for quadratic constraints in ModelStorage.