The C++23 std::bind_back is a complementary utility to std::bind_front, which binds the last n arguments of a callable.
A call to std::bind_back(Callable, bound args...)(call args...) is equivalent to std::invoke(Callable, call args..., bound args...).
Click to open in Compiler Explorer.
Leave a comment