Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void userFun1(Data data, int in1, int in2){
- // user defined function 1;
- }
- void userFun2(Data data, int in1, int in2, std::string s){
- // user defined function 2;
- }
- // ...
- // apply user function 1 on data
- MapFun(@userFun1, data, 3, 4);
- // apply user function 2 on data
- MapFun(@userFun2, data, 1, 2, "algorithm");
Add Comment
Please, Sign In to add comment