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 */
14module rt.typeinfo.ti_Acreal;
15
16private import rt.util.typeinfo;
17
18// creal[]
19
20class TypeInfo_Ac : TypeInfo_Array
21{
22    alias F = creal;
23
24    override bool opEquals(Object o) { return TypeInfo.opEquals(o); }
25
26    override string toString() const { return (F[]).stringof; }
27
28    override size_t getHash(scope const void* p) @trusted const
29    {
30        return Array!F.hashOf(*cast(F[]*)p);
31    }
32
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
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
43    override @property inout(TypeInfo) next() inout
44    {
45        return cast(inout)typeid(F);
46    }
47}
48