Guest User

Untitled

a guest
Nov 12th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void userFun1(Data data, int in1, int in2){
  2. // user defined function 1;
  3. }
  4.  
  5. void userFun2(Data data, int in1, int in2, std::string s){
  6. // user defined function 2;
  7. }
  8.  
  9. // ...
  10. // apply user function 1 on data
  11. MapFun(@userFun1, data, 3, 4);
  12. // apply user function 2 on data
  13. MapFun(@userFun2, data, 1, 2, "algorithm");
Add Comment
Please, Sign In to add comment