// // Created by David Doebel on 05.03.2026. // #include "Instrument.hpp" Instrument::Instrument(double maturity, std::unique_ptr payoff, std::unique_ptr engine) : maturity_(maturity), payoff_(std::move(payoff)), engine_ (std::move(engine)){ } double Instrument::price() const { return engine_->calculate(*this); }