int.defs.h
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1. // -*- C++ -*-
  2. #define DEFAULT_INITIAL_CAPACITY 8
  3. //     The initial capacity for containers (e.g., hash tables) that
  4. //     require an initial capacity argument for constructors.  Default:
  5. //     100
  6. #define intEQ(a, b) ((a)==(b))
  7. //     return true if a is considered equal to b for the purposes of
  8. //     locating, etc., an element in a container.  Default: (a == b)
  9. #define intLE(a, b) ((a)<=(b))
  10. //     return true if a is less than or equal to b Default: (a <= b)
  11. #define intCMP(a, b) (((a) <= (b))? ((a)==(b))? 0 : -1 : 1)
  12. //     return an integer < 0 if a<b, 0 if a==b, or > 0 if a>b.  Default:
  13. //     (a <= b)? (a==b)? 0 : -1 : 1
  14. #define intHASH(a) (a)
  15. //     return an unsigned integer representing the hash of a.  Default:
  16. //     hash(a) ; where extern unsigned int hash(<T&>).  (note: several
  17. //     useful hash functions are declared in builtin.h and defined in
  18. //     hash.cc)