고려 다음과 같은 두 가지 :std :: forward는 범용 참조를 통해 전달 된 함수입니까?
template <class Function>
void apply(Function&& function)
{
std::forward<Function>(function)();
}
어떤 경우
template <class Function>
void apply(Function&& function)
{
function();
}
차이가, 그리고 구체적인 어떤 차이가 있습니까?
"완벽한 전달 C++ 11"로 검색 – user2485710