XTE_FWD ()
Defined in header <xieite/preproc/fwd.hpp> Replaces
std ::forward ().Definitions
#fwdFunctions exactly like#define XTE_FWD (... )static_cast <decltype (__VA_ARGS__ )&& >(__VA_ARGS__ )
std ::forward () without requiring a template argument.Example
[View in Compiler Explorer]void foo (int&& ) {}void bar (auto&& x ) {foo (XTE_FWD (x )); }int main () {bar (0 ); }