fork download
  1. #include <algorithm>
  2. #include <functional>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main(){
  7. auto greater_binded = bind(greater<int>(), placeholders::_1, 3);
  8. std::cout << greater_binded(1, 2, 3, 4, 5, 6, 7) << std::endl;
  9. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
0