fork download
  1. #include <vector>
  2.  
  3. template <class T, class F>
  4. class Bheap
  5. {
  6. public:
  7. Bheap(int allocateSize) {}
  8. void insert(T value, F f)
  9. {
  10. f(value,value);
  11. }
  12. void getMax();
  13. private:
  14. int sizeUsed;
  15. int allocateSize;
  16. std::vector<T> myBheap;
  17. };
  18.  
  19. struct SomeStruct
  20. {
  21. void operator()(int, int){}
  22. };
  23.  
  24. int main()
  25. {
  26. Bheap<int, SomeStruct> b(10);
  27. SomeStruct s;
  28. b.insert(10, s);
  29. }
  30.  
Success #stdin #stdout 0s 3136KB
stdin
Standard input is empty
stdout
Standard output is empty