2 * TypeInfo support code.
4 * Copyright: Copyright Digital Mars 2004 - 2009.
5 * License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
6 * Authors: Walter Bright
9 /* Copyright Digital Mars 2004 - 2009.
10 * Distributed under the Boost Software License, Version 1.0.
11 * (See accompanying file LICENSE or copy at
12 * http://www.boost.org/LICENSE_1_0.txt)
14 module rt.typeinfo.ti_Adouble;
16 private import rt.util.typeinfo;
20 class TypeInfo_Ad : TypeInfo_Array
24 override bool opEquals(Object o) { return TypeInfo.opEquals(o); }
26 override string toString() const { return (F[]).stringof; }
28 override size_t getHash(in void* p) @trusted const
30 return Array!F.hashOf(*cast(F[]*)p);
33 override bool equals(in void* p1, in void* p2) const
35 return Array!F.equals(*cast(F[]*)p1, *cast(F[]*)p2);
38 override int compare(in void* p1, in void* p2) const
40 return Array!F.compare(*cast(F[]*)p1, *cast(F[]*)p2);
43 override @property inout(TypeInfo) next() inout
45 return cast(inout)typeid(F);
51 class TypeInfo_Ap : TypeInfo_Ad
55 override string toString() const { return (F[]).stringof; }
57 override @property inout(TypeInfo) next() inout
59 return cast(inout)typeid(F);