BasicString.opBinaryRight

Operator in

  1. typeof(this) opBinaryRight(CharType[] lhs)
  2. typeof(this) opBinaryRight(Lhs lhs)
  3. bool opBinaryRight(Elm elm)
    struct BasicString
    scope const
    bool
    opBinaryRight
    (
    string op
    Elm
    )
    (
    scope auto ref Elm elm
    )
    if (
    op == "in"
    )

Examples

BasicString!char str = "a123読";

assert('a' in str);
assert('b' !in str);
assert('3' in str);
assert('読' in str);

Meta