336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

This class is specialized for each of the fundamental types, with its members returning or set to the different values that define the properties that type has in the specific platform in which it compiles.

For all the other types (non-fundamental types) a specialization of this class should not exist.

The non-specialized class is defined as:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
template <class T> class numeric_limits {
public:
  static const bool is_specialized = false;
  static T min() throw();
  static T max() throw();
  static const int  digits = 0;
  static const int  digits10 = 0;
  static const bool is_signed = false;
  static const bool is_integer = false;
  static const bool is_exact = false;
  static const int radix = 0;
  static T epsilon() throw();
  static T round_error() throw();

  static const int  min_exponent = 0;
  static const int  min_exponent10 = 0;
  static const int  max_exponent = 0;
  static const int  max_exponent10 = 0;

  static const bool has_infinity = false;
  static const bool has_quiet_NaN = false;
  static const bool has_signaling_NaN = false;
  static const float_denorm_style has_denorm = denorm absent;
  static const bool has_denorm_loss = false;
  static T infinity() throw();
  static T quiet_NaN() throw();
  static T signalign_NaN() throw();
  static T denorm_min() throw();

  static const bool is_iec559 = false;
  static const bool is_bounded = false;
  static const bool is_modulo = false;

  static const bool traps = false;
  static const bool tinyness_before = false;
  static const float_round_style round_style = round_toward_zero;
}



A specialization exists for each of the fundamental types: boolcharsigned charunsigned charwchar_tshortunsigned shortint,unsigned intlongunsigned longfloatdouble and long double. These specializations define the specific values for the differentstatic const members, and all have is_specialized defined as true.


출처 : http://www.cplusplus.com/reference/std/limits/numeric_limits/

'Programming > C / C++' 카테고리의 다른 글

bitset 을 이용한 퀘스트 완료목록 관리  (0) 2015.02.07
EXIT_SUCCESS / EXIT_FAILURE  (0) 2015.02.07
bitset  (0) 2015.02.07
const 를 이용한 포인터 상수화  (0) 2015.02.07
override, abstract, __interface, sealed  (0) 2015.02.07
Posted by 역시인생한방
,