BasicString.opBinaryRight

Returns a newly constructed BasicString object with its value being the concatenation of the characters in lhs followed by those of this.

Parameter lhs can by type of BasicString!(...), char|wchar|dchar array/slice/character.

  1. typeof(this) opBinaryRight(CharType[] lhs)
  2. typeof(this) opBinaryRight(Lhs lhs)
    struct BasicString
    scope
    typeof(this)
    opBinaryRight
    (
    string op
    Lhs
    )
    (
    scope auto ref const Lhs lhs
    )
    if (
    (
    op == "+" ||
    op == "~"
    )
    &&
    (
    isSomeChar!Lhs ||
    isSomeString!Lhs
    ||
    isCharArray!Lhs
    ||
    isIntegral!Lhs
    )
    )
  3. bool opBinaryRight(Elm elm)

Examples

BasicString!char str = null;
assert(str.empty);

str = '1' + str;
assert(str == "1");

str = "32"d + str;
assert(str == "321");

str = BasicString!dchar("654") + str;
assert(str == "654321");

Meta