xref: /netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/typeinfo/ti_Acdouble.d (revision 627f7eb200a4419d89b531d55fccd2ee3ffdcde0)
1 /**
2  * TypeInfo support code.
3  *
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
7  */
8 
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)
13  */
14 module rt.typeinfo.ti_Acdouble;
15 
16 private import rt.util.typeinfo;
17 
18 // cdouble[]
19 
20 class TypeInfo_Ar : TypeInfo_Array
21 {
22     alias F = cdouble;
23 
opEquals(Object o)24     override bool opEquals(Object o) { return TypeInfo.opEquals(o); }
25 
toString()26     override string toString() const { return (F[]).stringof; }
27 
getHash(scope const void * p)28     override size_t getHash(scope const void* p) @trusted const
29     {
30         return Array!F.hashOf(*cast(F[]*)p);
31     }
32 
equals(in void * p1,in void * p2)33     override bool equals(in void* p1, in void* p2) const
34     {
35         return Array!F.equals(*cast(F[]*)p1, *cast(F[]*)p2);
36     }
37 
compare(in void * p1,in void * p2)38     override int compare(in void* p1, in void* p2) const
39     {
40         return Array!F.compare(*cast(F[]*)p1, *cast(F[]*)p2);
41     }
42 
inout(TypeInfo)43     override @property inout(TypeInfo) next() inout
44     {
45         return cast(inout)typeid(F);
46     }
47 }
48