Skip to main content

Mojo module

variadics

Implements the VariadicList and VariadicPack types.

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

Aliases

Variadic

alias Variadic[type: AnyType] = Variadic[type]

Represents a raw variadic sequence of values of the specified type.

Parameters

VariadicOf

alias VariadicOf[T: AnyTrait[AnyType]] = Variadic[T]

Represents a raw variadic sequence of types that satisfy the specified trait.

Parameters

  • T (AnyTrait):

Structs

  • VariadicList: A utility class to access homogeneous variadic function arguments.
  • VariadicListMem: 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.

Was this page helpful?