xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.

§ unused()

template<typename ... Args>
void xtd::unused ( Args &&...  args)

It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated.

Library
xtd_core
Parameters
argsvariables to suppress the unsed warning
Examples
This example sho how to use Unused():