I really like the functools.partial
function in python and the idea of this functionallity in general. As example consider the following python script (I know that this case is not a very usefull example für using functools.partial, it should just be an easy example.)
import functools
def func(a, b, c):
sum = a + b + c
return sum
if __name__ == "__main__":
func_p = functools.partial(func, a=1, c=1)
sum = func_p(b=1)
print(sum)
Is there something in C++ which offers a similar functionallity?