std::reference_wrapper
here구현 :: reference_wrapper
생성자와 연산자의 구현을 보면서 나에게 분명하지만
template< class... ArgTypes >
typename std::result_of<T&(ArgTypes&&...)>::type
operator() (ArgTypes&&... args) const {
return std::invoke(get(), std::forward<ArgTypes>(args)...);
}
이
누군가가 그것을 단순화 할 수
이 부분을 이해하지 못했다 나 ... 감사하겠습니다편집 : operator()
의 유용한 예를 std::reference_wrapper
기본적으로'operator()'를 심판 Functor에게 전달합니다. – Jarod42