The OpenD Programming Language

automem.vector

Dynamic arrays with deterministic memory usage akin to C++'s std::vector or Rust's std::vec::Vec

Members

Functions

vector
auto vector(E[] elements)
auto vector(A allocator, E[] elements)

Create a vector from a variadic list of elements, inferring the type of the elements and the allocator

vector
auto vector(R range)
auto vector(A allocator, R range)

Create a vector from an input range, inferring the type of the elements and the allocator.

Structs

Vector
struct Vector(E, Allocator = typeof(theAllocator))

A dynamic array with deterministic memory usage akin to C++'s std::vector or Rust's std::vec::Vec

Meta