Are you a library person (std::function, std::bind, std::bind_front) or a language person (lambdas, auto, currying)? So many tools to get the job done...
Partial function application
by Rainer Grimm
From the article:
A few weeks ago, I had a discussion with a few of my readers. One reader said that I should write about Partial Function Applications. Another reader mentioned that C++ does not support function applications. This is wrong. C++ supports Partial Function Application. Consequently, I am writing today about
std::function
,std::bind
,std::bind_front
, lambdas,auto
, and currying.Let me start with a bit of theory...
Add a Comment
Comments are closed.