home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / stlport / old_hp / iterator.h < prev    next >
C/C++ Source or Header  |  2002-04-29  |  3KB  |  148 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_ITERATOR_H
  27. #define _STLP_ITERATOR_H
  28.  
  29. # ifndef _STLP_OUTERMOST_HEADER_ID
  30. #  define _STLP_OUTERMOST_HEADER_ID 0xa013
  31. #  include <stl/_prolog.h>
  32. # endif
  33.  
  34. #if defined  (_STLP_DEBUG) || defined (_STLP_ASSERTIONS) && !defined (_STLP_DEBUG_H)
  35. # include <stl/debug/_debug.h>
  36. #endif
  37.  
  38. #if defined (_STLP_USE_NEW_STYLE_HEADERS)
  39. # include <cstddef>
  40. #else
  41. # include <stddef.h>
  42. #endif
  43.  
  44. # ifndef _STLP_NEW
  45. #  include <new>
  46. # endif
  47.  
  48. # ifndef __TYPE_TRAITS_H
  49. #  include <stl/type_traits.h>
  50. # endif
  51.  
  52. #ifndef _STLP_FUNCTION_H
  53. #include <function.h>
  54. #endif
  55.  
  56. # ifndef _STLP_IOSFWD
  57. #  include <iosfwd>
  58. # endif
  59.  
  60. # ifndef _STLP_INTERNAL_ITERATOR_BASE_H
  61. #  include <stl/_iterator_base.h>
  62. # endif
  63.  
  64. # ifndef _STLP_INTERNAL_ITERATOR_H
  65. #  include <stl/_iterator.h>
  66. # endif
  67.  
  68. #ifndef _STLP_INTERNAL_CONSTRUCT_H
  69. #include <stl/_construct.h>
  70. #endif
  71.  
  72. #ifndef _STLP_INTERNAL_RAW_STORAGE_ITERATOR_H
  73. #include <stl/_raw_storage_iter.h>
  74. #endif
  75.  
  76. # ifndef _STLP_INTERNAL_STREAM_ITERATOR_H
  77. #  include <stl/_stream_iterator.h>
  78. # endif
  79.  
  80. #ifdef _STLP_USE_NAMESPACES
  81.  
  82. // Names from stl_iterator.h
  83.  
  84. # ifdef _STLP_BROKEN_USING_DIRECTIVE
  85. using namespace STLPORT;
  86. # else
  87.  
  88. using STLPORT::input_iterator_tag;
  89. using STLPORT::output_iterator_tag;
  90. using STLPORT::forward_iterator_tag;
  91. using STLPORT::bidirectional_iterator_tag;
  92. using STLPORT::random_access_iterator_tag;
  93.  
  94. using STLPORT::input_iterator;
  95. using STLPORT::output_iterator;
  96. using STLPORT::forward_iterator;
  97. using STLPORT::bidirectional_iterator;
  98. using STLPORT::random_access_iterator;
  99.  
  100. #ifdef _STLP_CLASS_PARTIAL_SPECIALIZATION
  101. using STLPORT::iterator_traits;
  102. #endif
  103.  
  104. # ifdef _STLP_USE_OLD_HP_ITERATOR_QUERIES
  105. using STLPORT::iterator_category;
  106. using STLPORT::distance_type;
  107. using STLPORT::value_type;
  108. # endif
  109.  
  110. using STLPORT::distance; 
  111. using STLPORT::advance; 
  112.  
  113. using STLPORT::insert_iterator;
  114. using STLPORT::front_insert_iterator;
  115. using STLPORT::back_insert_iterator;
  116. using STLPORT::inserter;
  117. using STLPORT::front_inserter;
  118. using STLPORT::back_inserter;
  119.  
  120. using STLPORT::reverse_iterator;
  121. # if ! defined ( _STLP_CLASS_PARTIAL_SPECIALIZATION ) || defined (_STLP_USE_OLD_HP_ITERATOR_QUERIES)
  122. using STLPORT::reverse_bidirectional_iterator;
  123. # endif
  124. using STLPORT::istream_iterator;
  125. using STLPORT::ostream_iterator;
  126.  
  127. // Names from stl_construct.h
  128. using STLPORT::construct;
  129. using STLPORT::destroy;
  130.  
  131. // Names from stl_raw_storage_iter.h
  132. using STLPORT::raw_storage_iterator;
  133. # endif
  134.  
  135. #endif /* _STLP_USE_NAMESPACES */
  136.  
  137. # if (_STLP_OUTERMOST_HEADER_ID == 0xa013)
  138. #  include <stl/_epilog.h>
  139. #  undef _STLP_OUTERMOST_HEADER_ID
  140. # endif
  141.  
  142. #endif /* _STLP_ITERATOR_H */
  143.  
  144. // Local Variables:
  145. // mode:C++
  146. // End:
  147.  
  148.