Summary
This episode explores C++23's bind_back function, a utility that binds arguments to the end of a callable object's parameter list. Jason demonstrates how bind_back complements the existing bind_front by enabling partial function application from the opposite direction. He showcases practical examples using member functions, algorithms, and ranges while also providing a clear implementation of bind_back using modern C++ features like generalized lambda captures and parameter pack forwarding.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[alg.foreach]40% match -
[arithmetic.operations]40% match -
[func.wrap.func]40% match -
[ranges]40% match