For the case of the default template, I need a function that does nothing, but simply redirects everything it receives as an argument. In particular, links, constant, etc. Must be saved. The transparent(/* something */) entry should be completely equivalent to the /* something */ entry.
Is the following definition of function correctly defined to achieve this?
template <class S> decltype(auto) transparent (S && s) { return std::forward<S> (s); }
c ++ perfect-forwarding c ++ 14
Johnb
source share