PathCommon.opBinary

Equality overload.

  1. auto opBinary(InStringType str)
  2. auto opBinary(PathType other)
  3. bool opBinary(PathType other)
    mixintemplate PathCommon(PathType, StringType, alias theSeparator, alias theCaseSensitivity)
    const
    bool
    opBinary
    (
    string op
    )
    (
    auto ref in PathType other
    )
    if (
    op == "=="
    )
    if (
    isSomeString!StringType &&
    isSomeChar!(typeof(theSeparator))
    )

Examples

auto p1 = PathType("/hello/world");
auto p2 = PathType("/hello/world");
assertEqual(p1, p2);

Meta