auto c = UniqueString!false(); auto w = UniqueWString!false(); auto d = UniqueDString!false();
auto c = CopyingString!false(); auto w = CopyingWString!false(); auto d = CopyingDString!false();
import std.conv : to; foreach (assignment; AliasSeq!(Assignment.disabled, Assignment.copy)) { foreach (Ch; AliasSeq!(char, wchar, dchar)) { alias Str = Array!(Ch, assignment); Str str_as = Str.withElement('a'); Str str_as2 = 'a'.withElementMake!Str; Str str_as3 = 'a'.withElementMake!(Ch[]); assert(str_as == str_as2); assert(str_as2 == str_as3); str_as ~= Ch('_'); assert(str_as[].equal("a_")); } }