#ifndef CART_H #define CART_H #include #include #include "product.h" class Shopping_Cart { public: Shopping_Cart(); void add_product(Product const& product, int count); std::string to_string() const; double total() const; private: struct Pair { int count; Product product; }; std::vector reg; }; std::ostream& operator<<(std::ostream& os, Shopping_Cart const& rhs); #endif