Vector.build

Static function which return Vector construct from arguments args.

  1. typeof(this) build(Args args)
    struct Vector
    static
    typeof(this)
    build
    (
    Args...
    )
    (
    auto ref Args args
    )
  2. typeof(this) build(AllocatorType allocator, Args args)

Examples

import std.range : only;

auto vec = Vector!(int, 6).build(1, 2, [3, 4], only(5, 6), Vector!(int, 10).build(7, 8));
assert(vec == [1, 2, 3, 4, 5, 6, 7, 8]);

Meta