fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename P>
  5. class Stack {
  6. public:
  7. template <typename X> int pop(X pred) const;
  8. };
  9.  
  10. template <typename P>
  11. template<typename X>
  12. int Stack<P>::pop(X pred) const{
  13. return 0;
  14. }
  15.  
  16. int main() {
  17.  
  18. Stack<bool> obj;
  19. char a;
  20. obj.pop(a);
  21.  
  22. return 0;
  23. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty