template<typename T>
class UT_VariadicT< T >
Build a list of variadic arguments of the given template type
C-Style variadic arguments are error prone for various reasons:
- No type checking
- NULL termination issues
This class provides type-safety and a cleaner interface. For example, to accept a variable length array of strings:
void
function(
const VariadicStrings &
strings)
{
}
function(VariadicStrings() << "hello" << "world");
- Examples:
- karma_procedurals/BRAY_HdBox.C.
Definition at line 41 of file UT_Variadic.h.