Lines Matching refs:opCast
2248 // If `T` defines `opCast` we must infer the safety
2249 static if (hasMember!(T, "opCast"))
2251 // This will allow the compiler to infer the safety of `T.opCast!U`
2437 auto opCast(T)() @system immutable pure nothrow
5578 * Avoids opCast operator overloading.
5592 inout(TmpT) tmp = source; // bypass opCast by implicit conversion
5604 class C { @disable void opCast(T)(); }
5610 interface I { @disable void opCast(T)(); Object instance(); }
5611 interface J { @disable void opCast(T)(); Object instance(); }
6025 @disable void opCast(T, this X)(); // !
7011 auto ref opCast(T, this X)() { return cast(T) a; }
7307 T opCast(T)(){ return T.init; }
7355 assert(h.opCast!int() == 0);
7358 static assert(!__traits(compiles, ih.opCast!int()));
7422 // opCast
7649 T2 opCast(T2 : Typedef!(T, Unused), this X, T, Unused...)()
7654 auto ref opCast(T2, this X)()
8731 bool opCast(B: bool)() const
8736 Base opCast(B)() const