algorithm 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. *
  3. * Copyright (c) 1994
  4. * Hewlett-Packard Company
  5. *
  6. * Copyright (c) 1996,1997
  7. * Silicon Graphics Computer Systems, Inc.
  8. *
  9. * Copyright (c) 1997
  10. * Moscow Center for SPARC Technology
  11. *
  12. * Copyright (c) 1999
  13. * Boris Fomitchev
  14. *
  15. * This material is provided "as is", with absolutely no warranty expressed
  16. * or implied. Any use is at your own risk.
  17. *
  18. * Permission to use or copy this software for any purpose is hereby granted
  19. * without fee, provided the above notices are retained on all copies.
  20. * Permission to modify the code and to distribute modified code is granted,
  21. * provided the above notices are retained, and a notice that the code was
  22. * modified is included with the above copyright notice.
  23. *
  24. */
  25. #ifndef _STLP_ALGORITHM
  26. #ifndef _STLP_OUTERMOST_HEADER_ID
  27. # define _STLP_OUTERMOST_HEADER_ID 0x1
  28. # include <stl/_prolog.h>
  29. # define _STLP_ALGORITHM
  30. #endif
  31. #if (_STLP_OUTERMOST_HEADER_ID == 0x1)
  32. # ifndef _STLP_INTERNAL_CSTDIO
  33. // remove() conflicts, <cstdio> should always go first
  34. # include <stl/_cstdio.h>
  35. # endif
  36. # ifndef _STLP_INTERNAL_ALGO_H
  37. # include <stl/_algo.h>
  38. # endif
  39. #endif
  40. #if (_STLP_OUTERMOST_HEADER_ID != 0x1) || defined (_STLP_IMPORT_VENDOR_STD)
  41. # if defined (_STLP_HAS_INCLUDE_NEXT)
  42. # include_next <algorithm>
  43. # else
  44. # include _STLP_NATIVE_HEADER(algorithm)
  45. # endif
  46. #endif
  47. #if (_STLP_OUTERMOST_HEADER_ID == 0x1 )
  48. # include <stl/_epilog.h>
  49. # undef _STLP_OUTERMOST_HEADER_ID
  50. #endif
  51. #endif /* _STLP_ALGORITHM */
  52. // Local Variables:
  53. // mode:C++
  54. // End: