Post #14493 121 Jul 26, 2026, 17:34 UTC Interconverting `std::function` and `copyable_function`Источник: Arthur O’Dwyer Arthur O’Dwyer Interconverting std::function and copyable_function C++11 introduced std::function as a type-erased callable-object holder. function is badly designed in a few ways: Its rarely used “go fish” API bloats every user; it advertises operator() const even when the controlled object’s operator() is mutating; it…