fork download
  1. #include <memory>
  2. #include <string>
  3. #include <vector>
  4.  
  5. class Widget{
  6. public:
  7. Widget();
  8. private:
  9. struct Impl;
  10. std::unique_ptr<Impl> pImpl;
  11. };
  12.  
  13. struct Widget::Impl
  14. {
  15. std::string name; // Widget::Impl
  16. std::vector<double> data;
  17.  
  18. Impl()
  19. {
  20. }
  21.  
  22. ~Impl()
  23. {
  24. }
  25. };
  26.  
  27. int main()
  28. {
  29. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty