How to use placeholders for unneeded parameters in c++ -


i using function gmp arbitrary precision arithmetic library:

function: void mpz_gcdext (mpz_t g, mpz_t s, mpz_t t, const mpz_t a, const mpz_t b)  set g greatest common divisor of , b, , in addition set s , t coefficients satisfying a*s + b*t = g. value in g positive, if 1 or both of , b negative (or 0 if both inputs zero). values in s , t chosen such normally, abs(s) < abs(b) / (2 g) , abs(t) < abs(a) / (2 g), , these relations define s , t uniquely. there few exceptional cases:  if abs(a) = abs(b), s = 0, t = sgn(b).  otherwise, s = sgn(a) if b = 0 or abs(b) = 2 g, , t = sgn(b) if = 0 or abs(a) = 2 g.  in cases, s = 0 if , if g = abs(b), i.e., if b divides or = b = 0.  if t null value not computed.  

i not need values of 'g' or 't' , not create variables sole purpose of passing function. can pass placeholder specific function, , how can in c++ in general?

you might overload function.

void mpz_gcdext (mpz_t s, const mpz_t a, const mpz_t b) {     mpz_t g, t;     // initialize g , t needed     mpz_gcdext(g, s, t, a, b); } 

does help?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -