Instance Methodswift 6.0.1Swift

    initializeElement(at:to:)

    Initializes the element at index to the given value.

    func initializeElement(at index: UnsafeMutableBufferPointer<Element>.Index, to value: consuming Element)

    Parameters

    value

    The value used to initialize the buffer element’s memory.

    index

    The index of the element to initialize

    The memory underlying the destination element must be uninitialized, or Element must be a trivial type. After a call to initialize(to:), the memory underlying this element of the buffer is initialized.

    Other members in extension

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces