Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ function as param

int do_sth(int a, int b, function<int(int, int)> binop) { // C++ - Like
    return binop(a, b);
}
 
PREVIOUS NEXT
Tagged: #function #param
ADD COMMENT
Topic
Name
3+5 =