fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef ostream& (*io_manip_ptr_t)(ostream&);
  5.  
  6. void demo(io_manip_ptr_t pfun) {
  7. if (pfun == (io_manip_ptr_t)&endl) {
  8. cout << "Hi" << endl;
  9. }
  10. }
  11.  
  12. int main() {
  13. demo(endl);
  14. return 0;
  15. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Hi