Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

  1. /*++
  2. Copyright (C) 2000 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. utility.hxx
  6. Abstract:
  7. Utility header
  8. Author:
  9. Steve Kiraly (SteveKi) 28-Feb-2000
  10. Revision History:
  11. --*/
  12. #ifndef _CORE_UTILITY_HXX_
  13. #define _CORE_UTILITY_HXX_
  14. //
  15. //
  16. // NO_COPY *declares* the constructors and assignment operator for copying.
  17. // By not *defining* these functions, you can prevent your class from
  18. // accidentally being copied or assigned -- you will be notified by
  19. // a linkage error.
  20. //
  21. #define NO_COPY(cls) \
  22. cls(const cls&); \
  23. cls& operator=(const cls&)
  24. //
  25. //
  26. // NO_COPY *declares* the constructors and assignment operator for copying.
  27. // By not *defining* these functions, you can prevent your class from
  28. // accidentally being copied or assigned -- you will be notified by
  29. // a linkage error.
  30. //
  31. #define NO_COPY_T(cls) \
  32. cls(const cls<T>&); \
  33. cls<T>& operator=(const cls<T>&)
  34. enum
  35. {
  36. kBufferAllocHint = 100
  37. };
  38. #endif