BasicString.build

Static function which return BasicString construct from arguments args.

  1. typeof(this) build(Args args)
    struct BasicString
    static
    typeof(this)
    build
    (
    Args...
    )
    (
    scope auto ref const Args args
    )
    if (
    Args.length > 0 &&
    !is(immutable Args[0] == immutable AllocatorType)
    )
  2. typeof(this) build(AllocatorType allocator, Args args)

Examples

BasicString!char str = BasicString!char.build('1', cast(dchar)'2', "345"d, BasicString!wchar("678"));

assert(str == "12345678");

Meta