using namespace std::placeholders; m_handlers.emplace(m_handlerId, std::bind(func, std::forward<ObjT>(obj), _1, _2, _3, _4)); return m_handlerId++; } void operator ()(P1 arg1, P2 arg2, P3 arg3, P4 arg4) { for ( const auto& i : m_handlers ) i.second(arg1, arg2, ...
www.dbjr.com.cn/article/337...htm 2025-6-4