std::bind to std::function? April 11, 2024 by Tarik std::function<int(int)> bar = std::bind(foo, 2, std::placeholders::_1);