Why does std::function::operator= in C++ always construct and not assign object?
This query is mainly based on std::function<R(Args...) >::operator= and std::any::operator=. The documentation shows that they are always implemented by constructing a new temporary object and s
问答
阅读(5)