IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

variadics

Implements the VariadicList, ParameterList and VariadicPack types.

These are Mojo built-ins, so you don't need to import them.

Structs

  • ParameterList: A utility class to access homogeneous variadic parameters.
  • TypeList: A compile-time list of types conforming to a common trait.
  • VariadicList: A utility class to access variadic function arguments of memory-only types that may have ownership. It exposes references to the elements in a way that can be enumerated. Each element may be accessed with elt[].
  • VariadicPack: A utility class to access heterogeneous variadic function arguments.