opEqualsPart.opEqualsPart

Undocumented in source.
  1. enum opEqualsPart;
  2. enum opEqualsPart;
    template opEqualsPart(p...)
    static if(!(p.length == 0))
    static if(!isSomeFunction!(__traits(getMember, T, p[0])) && p[0] != "line" && p[0] != "column" && p[0] != "startLocation" && p[0] != "endLocation" && p[0] != "index")
    static if(typeof(__traits(getMember, T, p[0])).stringof[$ - 2 .. $] == "[]")
    enum opEqualsPart = "\nif (obj." ~ p[0] ~ ".length != this." ~ p[0] ~ ".length) return false;\n" ~ "foreach (i; 0 .. this." ~ p[0] ~ ".length)\n" ~ "\tif (this." ~ p[0] ~ "[i] != obj." ~ p[0] ~ "[i]) return false;" ~ opEqualsPart!(p[1..$]);
  3. enum opEqualsPart;
  4. enum opEqualsPart;

Meta