fork download
  1. #include <iostream>
  2. #include <memory> // for unique_ptr
  3. using namespace std;
  4.  
  5. struct Thing {
  6. bool isObscure;
  7. Thing()
  8. : isObscure(true) { }
  9.  
  10. Thing(bool obscure)
  11. : isObscure(obscure) { }
  12. };
  13.  
  14. namespace std {
  15. void explain(shared_ptr<Thing> thing) {
  16. if (thing->isObscure) {
  17. cout << "https://w...content-available-to-author-only...o.in/search?q=define%3Aobscure"
  18. << endl;
  19. }
  20. }
  21. }
  22.  
  23. int main() {
  24. std::shared_ptr<Thing> obscure = make_shared<Thing>();
  25. std::explain(obscure);
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 3416KB
stdin
Standard input is empty
stdout
https://w...content-available-to-author-only...o.in/search?q=define%3Aobscure