home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / stlport / old_hp / algo.h next >
C/C++ Source or Header  |  2002-04-29  |  4KB  |  147 lines

  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.  
  26. #ifndef _STLP_ALGO_H
  27. #define _STLP_ALGO_H
  28.  
  29. # ifndef _STLP_OUTERMOST_HEADER_ID
  30. #  define _STLP_OUTERMOST_HEADER_ID 0xa001
  31. #  include <stl/_prolog.h>
  32. # endif
  33.  
  34. # ifndef _STLP_ALGOBASE_H
  35. #  include <algobase.h>
  36. # endif
  37.  
  38. # ifndef _STLP_TEMPBUF_H
  39. #  include <tempbuf.h>
  40. # endif
  41.  
  42. # ifndef _STLP_INTERNAL_HEAP_H
  43. #  include <stl/_heap.h>
  44. # endif
  45.  
  46. # ifndef _STLP_ITERATOR_H
  47. #  include <iterator.h>
  48. # endif
  49.  
  50. # ifndef _STLP_INTERNAL_ALGO_H
  51. #  include <stl/_algo.h>
  52. # endif
  53.  
  54. # ifndef _STLP_NUMERIC_H
  55. #  include <stl/_numeric.h>
  56. # endif
  57.  
  58. #ifdef _STLP_USE_NAMESPACES
  59.  
  60. # ifdef _STLP_BROKEN_USING_DIRECTIVE
  61. using namespace STLPORT;
  62. # else
  63. // Names from <stl/_algo.h>
  64. using STLPORT::for_each; 
  65. using STLPORT::find; 
  66. using STLPORT::find_if; 
  67. using STLPORT::adjacent_find; 
  68. using STLPORT::count; 
  69. using STLPORT::count_if; 
  70. using STLPORT::search; 
  71. using STLPORT::search_n; 
  72. using STLPORT::swap_ranges; 
  73. using STLPORT::transform; 
  74. using STLPORT::replace; 
  75. using STLPORT::replace_if; 
  76. using STLPORT::replace_copy; 
  77. using STLPORT::replace_copy_if; 
  78. using STLPORT::generate; 
  79. using STLPORT::generate_n; 
  80. // using STLPORT::remove; 
  81. using STLPORT::remove_if; 
  82. using STLPORT::remove_copy; 
  83. using STLPORT::remove_copy_if; 
  84. using STLPORT::unique; 
  85. using STLPORT::unique_copy; 
  86. using STLPORT::reverse; 
  87. using STLPORT::reverse_copy; 
  88. using STLPORT::rotate; 
  89. using STLPORT::rotate_copy; 
  90. using STLPORT::random_shuffle; 
  91. using STLPORT::random_sample; 
  92. using STLPORT::random_sample_n; 
  93. using STLPORT::partition; 
  94. using STLPORT::stable_partition; 
  95. using STLPORT::sort; 
  96. using STLPORT::stable_sort; 
  97. using STLPORT::partial_sort; 
  98. using STLPORT::partial_sort_copy; 
  99. using STLPORT::nth_element; 
  100. using STLPORT::lower_bound; 
  101. using STLPORT::upper_bound; 
  102. using STLPORT::equal_range; 
  103. using STLPORT::binary_search; 
  104. using STLPORT::merge; 
  105. using STLPORT::inplace_merge; 
  106. using STLPORT::includes; 
  107. using STLPORT::set_union; 
  108. using STLPORT::set_intersection; 
  109. using STLPORT::set_difference; 
  110. using STLPORT::set_symmetric_difference; 
  111. using STLPORT::min_element; 
  112. using STLPORT::max_element; 
  113. using STLPORT::next_permutation; 
  114. using STLPORT::prev_permutation; 
  115. using STLPORT::find_first_of; 
  116. using STLPORT::find_end; 
  117. using STLPORT::is_sorted; 
  118. using STLPORT::is_heap; 
  119.  
  120. // Names from stl_heap.h
  121. using STLPORT::push_heap;
  122. using STLPORT::pop_heap;
  123. using STLPORT::make_heap;
  124. using STLPORT::sort_heap;
  125.  
  126. // Names from <stl/_numeric.h>
  127. using STLPORT::accumulate; 
  128. using STLPORT::inner_product; 
  129. using STLPORT::partial_sum; 
  130. using STLPORT::adjacent_difference; 
  131. using STLPORT::power; 
  132. using STLPORT::iota; 
  133.  
  134. # endif /* _STLP_BROKEN_USING_DIRECTIVE */
  135. #endif /* _STLP_USE_NAMESPACES */
  136.  
  137. # if (_STLP_OUTERMOST_HEADER_ID == 0xa001)
  138. #  include <stl/_epilog.h>
  139. #  undef _STLP_OUTERMOST_HEADER_ID
  140. # endif
  141.  
  142. #endif /* _STLP_ALGO_H */
  143.  
  144. // Local Variables:
  145. // mode:C++
  146. // End:
  147.