assertPred

Undocumented in source. Be warned that the author may not have intended to support it.
  1. void assertPred(L lhs, R rhs, string msg, string file, size_t line)
  2. void assertPred(L lhs, R rhs, string msg, string file, size_t line)
  3. void assertPred(L lhs, R rhs, string msg, string file, size_t line)
  4. void assertPred(L lhs, R rhs, E expected, string msg, string file, size_t line)
    void
    assertPred
    (
    string op
    L
    R
    E
    )
    (
    L lhs
    ,
    R rhs
    ,,
    lazy string msg = null
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    ||
    op == "%"
    ||
    op == "^^"
    ||
    op == "&"
    ||
    op == "|"
    ||
    op == "^"
    ||
    op == "<<"
    ||
    op == ">>"
    ||
    op == ">>>"
    ||
    op == "~"
    )
    &&
    __traits(compiles, mixin ("lhs " ~ op ~ " rhs"))
    &&
    __traits(compiles, mixin ("(lhs " ~ op ~ " rhs) == expected"))
    &&
    isPrintable!L
    &&
    isPrintable!R
    )
  5. void assertPred(L lhs, R rhs, E expected, string msg, string file, size_t line)
  6. void assertPred(T a)
  7. void assertPred(T a, U b)
  8. void assertPred(T args)

Meta