While looking at the implementation of std::reference_wrapper
here
The constructors and operators are obvious to me but I didn't understand this part
template< class... ArgTypes >
typename std::result_of<T&(ArgTypes&&...)>::type
operator() ( ArgTypes&&... args ) const {
return std::invoke(get(), std::forward<ArgTypes>(args)...);
}
Could someone simplify it for me ... would be appreciated
Edit: and would be great to give useful example for operator()
of std::reference_wrapper