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