OSDN Git Service

2008-12-12 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / src / limits_c++0x.cc
1 // std::limits definitions -*- C++ -*-
2
3 // Copyright (C) 2008 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library.  This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
10
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU General Public License for more details.
15
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING.  If not, write to the Free
18 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 // USA.
20
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction.  Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License.  This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
29
30 #include <limits>
31
32 namespace std
33 {
34   // char16_t
35   const bool numeric_limits<char16_t>::is_specialized;
36   const int  numeric_limits<char16_t>::digits;
37   const int  numeric_limits<char16_t>::digits10;
38   const bool numeric_limits<char16_t>::is_signed;
39   const bool numeric_limits<char16_t>::is_integer;
40   const bool numeric_limits<char16_t>::is_exact;
41   const int  numeric_limits<char16_t>::radix;
42   const int  numeric_limits<char16_t>::min_exponent;
43   const int  numeric_limits<char16_t>::min_exponent10;
44   const int  numeric_limits<char16_t>::max_exponent;
45   const int  numeric_limits<char16_t>::max_exponent10;
46   const bool numeric_limits<char16_t>::has_infinity;
47   const bool numeric_limits<char16_t>::has_quiet_NaN;
48   const bool numeric_limits<char16_t>::has_signaling_NaN;
49   const float_denorm_style numeric_limits<char16_t>::has_denorm;
50   const bool numeric_limits<char16_t>::has_denorm_loss;
51   const bool numeric_limits<char16_t>::is_iec559;
52   const bool numeric_limits<char16_t>::is_bounded;
53   const bool numeric_limits<char16_t>::is_modulo;
54   const bool numeric_limits<char16_t>::traps;
55   const bool numeric_limits<char16_t>::tinyness_before;
56   const float_round_style numeric_limits<char16_t>::round_style;
57
58   // char32_t
59   const bool numeric_limits<char32_t>::is_specialized;
60   const int  numeric_limits<char32_t>::digits;
61   const int  numeric_limits<char32_t>::digits10;
62   const bool numeric_limits<char32_t>::is_signed;
63   const bool numeric_limits<char32_t>::is_integer;
64   const bool numeric_limits<char32_t>::is_exact;
65   const int  numeric_limits<char32_t>::radix;
66   const int  numeric_limits<char32_t>::min_exponent;
67   const int  numeric_limits<char32_t>::min_exponent10;
68   const int  numeric_limits<char32_t>::max_exponent;
69   const int  numeric_limits<char32_t>::max_exponent10;
70   const bool numeric_limits<char32_t>::has_infinity;
71   const bool numeric_limits<char32_t>::has_quiet_NaN;
72   const bool numeric_limits<char32_t>::has_signaling_NaN;
73   const float_denorm_style numeric_limits<char32_t>::has_denorm;
74   const bool numeric_limits<char32_t>::has_denorm_loss;
75   const bool numeric_limits<char32_t>::is_iec559;
76   const bool numeric_limits<char32_t>::is_bounded;
77   const bool numeric_limits<char32_t>::is_modulo;
78   const bool numeric_limits<char32_t>::traps;
79   const bool numeric_limits<char32_t>::tinyness_before;
80   const float_round_style numeric_limits<char32_t>::round_style;
81 }