| Start | ||||||
|---|---|---|---|---|---|---|
Check whether a variable is of a certain qualified type Output: However, if the type generic macro is implemented like this: The output is: This is because all type qualifiers are dropped for the evaluation of the controlling expression of a |
||||||
| Generic selection based on multiple arguments If a selection on multiple arguments for a type generic expression is wanted, and all types in question are arithmetic types, an easy way to avoid nested Here, the controlling expression For more complex situation, a selection can be made based on more than one argument to the operator, by nesting them together. This example selects between four externally implemented functions, that take combinations of two int and/or string arguments, and return their sum. Even though it appears as if argument 1 (Quoted from: ISO:IEC 9899:201X 6.5.1.1 Generic selection 3) |
||||||
Type-generic printing macro Output: Note that if the type is neither Syntax
Parameters
Remarks
|
Read Article
https://develop.horje.com/learn/1434/reference