Function BasicString.build
Static function which return BasicString
construct from arguments args
.
typeof(this) build(Args...)
(
auto scope const ref Args args
)
if (Args .length > 0 && !is(immutable(Args[0]) == immutable(AllocatorType)));
typeof(this) build(Args...)
(
BasicString . AllocatorType allocator,
auto scope const ref Args args
);
Parameters
allocator
exists only if template parameter _Allocator
has state.
args
values of type char|wchar|dchar
array/slice/character or BasicString
.
Examples
BasicString!char str = BasicString!char .build('1', cast(dchar)'2', "345"d, BasicString!wchar("678"));
assert(str == "12345678");