Daily bit(e) of C++ | std::bind_front
Daily bit(e) of C++ #387, A C++ alternative to std::bind that can only bind arguments in-order and from front.
std::bind_front is a simpler std::bind alternative, introduced in C++20.
Unlike std::bind, it doesn’t allow for arbitrary reordering of arguments and only allows binding of the leading arguments.
As a consequence, std::bind_front doesn’t suffer from some limitations of std::bind.