从无法访问的项目Fork
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
#ifndef CONDIMENTDECORATOR_HPP #define CONDIMENTDECORATOR_HPP #include "Beverage.hpp" #include <memory> class CondimentDecorator : public Beverage { protected: std::unique_ptr<Beverage> beverage; public: CondimentDecorator(std::unique_ptr<Beverage> b) : beverage(std::move(b)) {} virtual ~CondimentDecorator() = default; }; #endif