The OpenD Programming Language

Array.insertBack

Inserts the specified elements at the back of the array. stuff can be a value convertible to bool or a range of objects convertible to bool.

  1. size_t insertBack(Stuff stuff)
  2. size_t insertBack(Stuff stuff)
    struct Array(T)
    size_t
    insertBack
    (
    Stuff
    )
    (
    Stuff stuff
    )
    if (
    isInputRange!Stuff &&
    is(ElementType!Stuff : bool)
    )
    if (
    is(immutable T == immutable bool)
    )

Return Value

Type: size_t

The number of elements inserted.

Complexity: O(length + m) if reallocation takes place, otherwise O(m), where m is the number of elements in stuff.

Meta