Friday, September 22, 2017

9/22/17

In digging through the ASIO C++ library examples, I came across an actual use of std::bind. Its entry in cppreference seemed like buzzword salad, so I never previously had paid it any attention.

But in ASIO, they use std::bind to create functions from class methods and associated data.  The functions get passed to its async driver.  So if I liken the output of std::bind to a sort of closure that returns a procedure, it makes sense to me.

No comments:

Post a Comment