XTE _ FWD ()
Defined in header <xte/preproc/fwd.hpp> Provides a simpler interface for the functionality of
std ::forward (). Does not require passing the type of the value being forwarded separately.Definition
#define XTE_FWD (... )static_cast <decltype (__VA_ARGS__ )&& >(__VA_ARGS__ )
Example
[View in Compiler Explorer]void foo (int&& ) {}void bar (auto&& x ) {foo (XTE_FWD (x )); }bar (0 );